[object Object]

← back to Sister Parish Onboarding

fix: bump SP metafield namespace dw→dwc (Shopify requires ≥3 chars)

b6c1a27f352d61809047b55e9d7e57276747a664 · 2026-05-12 16:49:24 -0700 · SteveStudio2

Files touched

Diff

commit b6c1a27f352d61809047b55e9d7e57276747a664
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Tue May 12 16:49:24 2026 -0700

    fix: bump SP metafield namespace dw→dwc (Shopify requires ≥3 chars)
---
 scripts/push_shopify.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/push_shopify.js b/scripts/push_shopify.js
index 9726ecb..a755413 100644
--- a/scripts/push_shopify.js
+++ b/scripts/push_shopify.js
@@ -99,9 +99,9 @@ function buildProductPayload(p) {
       variants,
       images: (p.images || []).slice(0, 10).map(i => ({ src: i.src, position: i.position, alt: i.alt || p.title })),
       metafields: [
-        { namespace: 'dw', key: 'source_url', type: 'single_line_text_field', value: p.url },
-        { namespace: 'dw', key: 'source_product_id', type: 'single_line_text_field', value: String(p.sp_product_id) },
-        { namespace: 'dw', key: 'pricing_rule', type: 'single_line_text_field', value: 'vendor_retail / 0.85' },
+        { namespace: 'dwc', key: 'source_url', type: 'single_line_text_field', value: p.url },
+        { namespace: 'dwc', key: 'source_product_id', type: 'single_line_text_field', value: String(p.sp_product_id) },
+        { namespace: 'dwc', key: 'pricing_rule', type: 'single_line_text_field', value: 'vendor_retail / 0.85' },
       ]
     }
   };

← b825dc7 sp: preflight.sh — single-shot health read for YOLO ticks  ·  back to Sister Parish Onboarding  ·  fix: drop status=any from /products.json list (invalid in AP 0a5d2b8 →