← back to Designerwallcoverings
theme (source): hide showroom-TAGGED products from browse/search grids (TK-11307)
da493902dccd1498d4e1acbb9d45c12d8e362785 · 2026-09-08 15:39:49 -0700 · steve
product-list-item.liquid render-skip now also suppresses any product with the
'Showroom' tag (shared-vendor-safe), and hide-browse-hidden.liquid adds a
[data-showroom]/.pr-showroom-hidden CSS hook + a data-tags Boost backstop. Source
edit only — theme PUSH is gated. Native theme grids fully covered by the render-skip;
Boost index exclusion of tag:Showroom is the belt-and-suspenders (gated deploy note).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JDeaFL4eeREBZX79tc4cnr
Files touched
M scripts/tk11186-showroom-hide/theme-deploy/hide-browse-hidden.liquidM scripts/tk11186-showroom-hide/theme-deploy/product-list-item.liquid
Diff
commit da493902dccd1498d4e1acbb9d45c12d8e362785
Author: steve <steve@designerwallcoverings.com>
Date: Tue Sep 8 15:39:49 2026 -0700
theme (source): hide showroom-TAGGED products from browse/search grids (TK-11307)
product-list-item.liquid render-skip now also suppresses any product with the
'Showroom' tag (shared-vendor-safe), and hide-browse-hidden.liquid adds a
[data-showroom]/.pr-showroom-hidden CSS hook + a data-tags Boost backstop. Source
edit only — theme PUSH is gated. Native theme grids fully covered by the render-skip;
Boost index exclusion of tag:Showroom is the belt-and-suspenders (gated deploy note).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JDeaFL4eeREBZX79tc4cnr
---
.../theme-deploy/hide-browse-hidden.liquid | 10 ++++++++++
.../theme-deploy/product-list-item.liquid | 8 ++++++++
2 files changed, 18 insertions(+)
diff --git a/scripts/tk11186-showroom-hide/theme-deploy/hide-browse-hidden.liquid b/scripts/tk11186-showroom-hide/theme-deploy/hide-browse-hidden.liquid
index 38e66bb..193f8fe 100644
--- a/scripts/tk11186-showroom-hide/theme-deploy/hide-browse-hidden.liquid
+++ b/scripts/tk11186-showroom-hide/theme-deploy/hide-browse-hidden.liquid
@@ -34,6 +34,9 @@
[data-vendor="{{ vt | escape }}"]{display:none!important;}
{%- endif -%}
{%- endfor -%}
+/* TK-11307: product-level 'Showroom' tag hook — a shared-vendor showroom line (MDC under
+ 'Phillipe Romano') carries this attr/class without exposing a hideable vendor name. */
+[data-showroom="true"],.pr-showroom-hidden{display:none!important;}
</style>
<script>
(function(){
@@ -51,6 +54,13 @@
document.querySelectorAll('[data-vendor]').forEach(function(el){
if (HIDDEN.indexOf(String(el.getAttribute('data-vendor')||'').trim().toLowerCase()) > -1){ el.style.display = 'none'; }
});
+ // TK-11307: hide any card whose product tags include 'Showroom' (shared-vendor path).
+ // Covers Boost/AJAX grids where the card exposes tags via a data-tags attribute.
+ document.querySelectorAll('[data-tags]').forEach(function(el){
+ if (String(el.getAttribute('data-tags')||'').toLowerCase().split(/[,\s]+/).indexOf('showroom') > -1){
+ var c = el.closest(CARD_SEL) || el; if (c && c.style.display !== 'none') c.style.display = 'none';
+ }
+ });
}
hideProducts();
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', hideProducts);
diff --git a/scripts/tk11186-showroom-hide/theme-deploy/product-list-item.liquid b/scripts/tk11186-showroom-hide/theme-deploy/product-list-item.liquid
index 6108cd5..21b9a83 100644
--- a/scripts/tk11186-showroom-hide/theme-deploy/product-list-item.liquid
+++ b/scripts/tk11186-showroom-hide/theme-deploy/product-list-item.liquid
@@ -24,6 +24,14 @@
assign is_showroom_vendor = true
endif
endfor
+ # TK-11307: product-level 'Showroom' TAG is an ADDITIONAL, shared-vendor-safe key.
+ # A showroom line under a SHARED private label (MDC under 'Phillipe Romano', which also
+ # carries sellable lines) is suppressed by its own tag WITHOUT hiding the vendor. The
+ # tag applier stamps 'Showroom' on exactly the showroom products; sellable siblings keep
+ # rendering. Case-insensitive: check both 'Showroom' and 'showroom'.
+ if product.tags contains 'Showroom' or product.tags contains 'showroom'
+ assign is_showroom_vendor = true
+ endif
-%}
{%- unless is_showroom_vendor -%}
← 740956f rotators: exclude showroom-tagged products from New Arrivals
·
back to Designerwallcoverings
·
google-channel unpublish: add tag-scoped path for shared-ven 01c73ed →