← back to Dw Theme Boost Fix
TK-11304: PDP shows bold 'Type II Commercial Wallcovering' badge atop spec block for Type II/Type 2 tagged products (token-boundaried so Type III is excluded); unit stays unit_of_measure-driven
88e87a683c4d9550ef405953c77f31daf967d79f · 2026-09-08 11:56:24 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JDeaFL4eeREBZX79tc4cnr
Files touched
M snippets/product-description-meta.liquid
Diff
commit 88e87a683c4d9550ef405953c77f31daf967d79f
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Sep 8 11:56:24 2026 -0700
TK-11304: PDP shows bold 'Type II Commercial Wallcovering' badge atop spec block for Type II/Type 2 tagged products (token-boundaried so Type III is excluded); unit stays unit_of_measure-driven
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JDeaFL4eeREBZX79tc4cnr
---
snippets/product-description-meta.liquid | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/snippets/product-description-meta.liquid b/snippets/product-description-meta.liquid
index 9921496..cb14a7c 100644
--- a/snippets/product-description-meta.liquid
+++ b/snippets/product-description-meta.liquid
@@ -34,6 +34,18 @@
{% if w != blank or mat != blank or col != blank %}{% assign has_specs = true %}{% endif %}
+{% comment %} TK-11304 — Type II contract wallcovering: bold badge atop the PDP spec area for
+ any product tagged "Type II" (also accepts "Type 2"). Rendered independent of has_specs so it
+ still shows on Type II products with sparse specs. Contract goods are sold BY THE YARD — the
+ unit_of_measure metafield already drives the "Unit" row below (no single-roll hardcode). {% endcomment %}
+{% comment %} Wrap each tag in commas so a substring test is token-boundaried — otherwise
+ 'type ii' would falsely match inside 'type iii' (Type III). Also accepts a space-suffixed
+ tag like 'Type II Commercial'. {% endcomment %}
+{% assign dw_tagstr = product.tags | join: ',' | downcase | prepend: ',' | append: ',' %}
+{% if dw_tagstr contains ',type ii,' or dw_tagstr contains ',type ii ' or dw_tagstr contains ',type 2,' or dw_tagstr contains ',type 2 ' %}
+<div class="dw-type2-label" style="font-weight:700;font-size:15px;color:#1a1714;letter-spacing:.01em;margin:14px 0 4px;">Type II Commercial Wallcovering</div>
+{% endif %}
+
{% if has_specs %}
<div class="dw-specs">
<div class="dw-specs-title">Specifications</div>
← 725ac15 auto-data-snapshot: 2026-08-26T09:01:00 (1 data files) — dat
·
back to Dw Theme Boost Fix
·
Revert "TK-11304: PDP shows bold 'Type II Commercial Wallcov c9e6484 →