← back to Atomic50 Onboard
atomic50: route tin-spec metafields to tin namespace (store custom.material/finish defs reject single-line text)
3a52a24de3f6c66659268f73a0f7c42590160b64 · 2026-07-13 15:28:13 -0700 · Steve
Files touched
Diff
commit 3a52a24de3f6c66659268f73a0f7c42590160b64
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jul 13 15:28:13 2026 -0700
atomic50: route tin-spec metafields to tin namespace (store custom.material/finish defs reject single-line text)
---
push-shopify.js | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/push-shopify.js b/push-shopify.js
index bc202dd..4967b28 100644
--- a/push-shopify.js
+++ b/push-shopify.js
@@ -87,14 +87,17 @@ function tagsFor(row) {
return [...set].filter((t) => !BAN.test(t)).join(', ');
}
function metafieldsFor(row) {
+ // Tin-ceiling spec fields go in the `tin` namespace (no store definitions there),
+ // NOT `custom` — the store already defines custom.material=multi_line and
+ // custom.finish=product_reference, which reject our single-line text values.
const mf = [];
- const push = (key, value) =>
- value && mf.push({ namespace: 'custom', key, type: 'single_line_text_field', value: String(value) });
- push('material', row.material);
- push('finish', row.finish);
- push('application', row.application);
- push('fire_rating', row.fire_rating);
- if (row.width) push('width', row.width);
+ const push = (ns, key, value) =>
+ value && mf.push({ namespace: ns, key, type: 'single_line_text_field', value: String(value) });
+ push('tin', 'material', row.material);
+ push('tin', 'finish', row.finish);
+ push('tin', 'application', row.application);
+ push('tin', 'fire_rating', row.fire_rating);
+ push('tin', 'width', row.width);
mf.push({ namespace: 'sec', key: 'mfr_sku', type: 'single_line_text_field', value: row.mfr_sku });
mf.push({ namespace: 'sec', key: 'dw_sku', type: 'single_line_text_field', value: row.dw_sku });
return mf;
← 142d5be auto-save: 2026-07-13T15:25:47 (1 files) — data/shopify-push
·
back to Atomic50 Onboard
·
atomic50: Shopify push RESULT — 56 drafts created + 2 reconc 76a864e →