← back to Designer Wallcoverings
product min-qty: recurring re-assert beats theme's variant-change widget rebuild (Wallcovering now holds min=10)
02af8f9873c2a72c3c3d3be331b248125a2005b1 · 2026-06-29 12:26:43 -0700 · Steve Abrams
Files touched
M DW-Websites/variant-min-quantity.liquid
Diff
commit 02af8f9873c2a72c3c3d3be331b248125a2005b1
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon Jun 29 12:26:43 2026 -0700
product min-qty: recurring re-assert beats theme's variant-change widget rebuild (Wallcovering now holds min=10)
---
DW-Websites/variant-min-quantity.liquid | 3 +++
1 file changed, 3 insertions(+)
diff --git a/DW-Websites/variant-min-quantity.liquid b/DW-Websites/variant-min-quantity.liquid
index a8e7296b..29f23087 100644
--- a/DW-Websites/variant-min-quantity.liquid
+++ b/DW-Websites/variant-min-quantity.liquid
@@ -75,6 +75,9 @@
wire();
// the theme resets qty to 1 at ~1000ms — re-apply after that so the floor wins
[1100, 1600, 2500].forEach(function (t) { setTimeout(function () { applyMin(true); }, t); });
+ // the theme REBUILDS the qty widget on variant change (resetting min to 1); a light
+ // recurring re-assert keeps the floor correct without disrupting values at/above it
+ setInterval(function () { wire(); applyMin(false); }, 400);
}
if (document.readyState !== 'loading') start();
else document.addEventListener('DOMContentLoaded', start);
← 4f37afe2 auto-save: 2026-06-29T11:48:48 (5 files) — pending-approval/
·
back to Designer Wallcoverings
·
deploy: insert before the LAST </body> (theme.liquid has an 29132a2f →