← back to Designer Wallcoverings
grouped grid: pass collection_handle for brand-family scoping
dd2798d17003824f0dd1c37a3512d66d9aa284aa · 2026-06-26 07:29:54 -0700 · Steve
Files touched
M shopify/_cwGRID/sections/collection-grouped.liquid
Diff
commit dd2798d17003824f0dd1c37a3512d66d9aa284aa
Author: Steve <steve@designerwallcoverings.com>
Date: Fri Jun 26 07:29:54 2026 -0700
grouped grid: pass collection_handle for brand-family scoping
---
shopify/_cwGRID/sections/collection-grouped.liquid | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/shopify/_cwGRID/sections/collection-grouped.liquid b/shopify/_cwGRID/sections/collection-grouped.liquid
index 7c8d3531..510c1bf1 100644
--- a/shopify/_cwGRID/sections/collection-grouped.liquid
+++ b/shopify/_cwGRID/sections/collection-grouped.liquid
@@ -207,8 +207,11 @@
function feedUrl(p) {
var qs = [];
+ // Prefer the collection handle (brand collections span multiple vendor spellings
+ // → current_vendor is blank; the feed derives a vendor-family from the handle).
if (VENDOR) qs.push('vendor=' + encodeURIComponent(VENDOR));
- else qs.push('all=1'); // local/whole-catalog proxy when no vendor scope
+ if (HANDLE) qs.push('collection_handle=' + encodeURIComponent(HANDLE));
+ if (!VENDOR && !HANDLE) qs.push('all=1');
qs.push('page=' + p); qs.push('per=' + PER);
if (sortSel && sortSel.value) qs.push('sort=' + encodeURIComponent(sortSel.value));
return FEED + '?' + qs.join('&');
← 1819c605 grouped grid: Hue+Style sorts, controls show on load (dev 5.
·
back to Designer Wallcoverings
·
grouped grid: self-heal stale images from live product.js + c70c7779 →