← back to Designer Wallcoverings
Brand McKenzie: make canonical lead time 3-5 Weeks sticky (TK-11775)
9acf57b5bc49f6e509ff0120775bd9401ca2fdff · 2026-09-15 13:29:46 -0700 · Steve
Align update-mckenzie-delivery.js to 3-5 Weeks (const + DELIVERY_HTML +
idempotency check + header). A prior run had overwritten custom.delivery_time
to 2-4 Weeks on the live store; live values restored, and this realign means a
future manual re-run reinforces 3-5 rather than re-breaking it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJQtTcj1SfKCixhrh14MvY
Files touched
M shopify/scripts/update-mckenzie-delivery.js
Diff
commit 9acf57b5bc49f6e509ff0120775bd9401ca2fdff
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Sep 15 13:29:46 2026 -0700
Brand McKenzie: make canonical lead time 3-5 Weeks sticky (TK-11775)
Align update-mckenzie-delivery.js to 3-5 Weeks (const + DELIVERY_HTML +
idempotency check + header). A prior run had overwritten custom.delivery_time
to 2-4 Weeks on the live store; live values restored, and this realign means a
future manual re-run reinforces 3-5 rather than re-breaking it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJQtTcj1SfKCixhrh14MvY
---
shopify/scripts/update-mckenzie-delivery.js | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/shopify/scripts/update-mckenzie-delivery.js b/shopify/scripts/update-mckenzie-delivery.js
index 35cbe4e8..ca5ed6fe 100644
--- a/shopify/scripts/update-mckenzie-delivery.js
+++ b/shopify/scripts/update-mckenzie-delivery.js
@@ -1,15 +1,18 @@
#!/usr/bin/env node
/**
- * Brand McKenzie — set lead time to 4-6 Weeks.
- * - Append <p><strong>4-6 Week Delivery</strong></p> to body (idempotent)
- * - Set global.lead_time metafield to "4-6 Weeks"
+ * Brand McKenzie — set lead time to 3-5 Weeks.
+ * - Append <p><strong>3-5 Week Delivery</strong></p> to body (idempotent)
+ * - Set global.lead_time + custom.delivery_time metafields to "3-5 Weeks"
+ * NOTE (2026-09-15, TK-11775): canonical BM lead time is "3-5 Weeks". A prior
+ * run of this script overwrote it to "2-4 Weeks" on the live store; restored +
+ * this const realigned so a future manual re-run reinforces 3-5, not re-breaks it.
*/
const STORE = 'designer-laboratory-sandbox.myshopify.com';
const TOKEN = process.env.SHOPIFY_ADMIN_TOKEN || process.env.SHOPIFY_ADMIN_TOKEN;
const VENDOR = 'Brand McKenzie';
-const DELIVERY_HTML = '<p> <strong>2-4 Week Delivery</strong></p>';
-const LEAD_TIME = '2-4 Weeks';
+const DELIVERY_HTML = '<p> <strong>3-5 Week Delivery</strong></p>';
+const LEAD_TIME = '3-5 Weeks';
const log = (m) => console.log(`[${new Date().toLocaleTimeString()}] ${m}`);
@@ -43,7 +46,7 @@ async function fetchAll() {
}
async function updateProduct(p) {
- const hasLine = (p.descriptionHtml || '').toLowerCase().includes('4-6 week delivery');
+ const hasLine = (p.descriptionHtml || '').toLowerCase().includes('3-5 week delivery');
let newBody = p.descriptionHtml || '';
if (!hasLine) newBody = `${newBody}\n${DELIVERY_HTML}`;
// Strip any existing "X-Y Week Delivery" lines (with or without leading ) so we can append the canonical one
← ca116495 auto-data-snapshot: 2026-09-15T13:06:09 (5 data files) — DW-
·
back to Designer Wallcoverings
·
auto-data-snapshot: 2026-09-15T13:40:09 (4 data files) — DW- f5352ea7 →