Blog
-
Wix to Shopify Migration: Six Options Into Three
A Wix to Shopify migration breaks on options: Wix allows six per product, Shopify three, and the importer drops variants on anything over that.
-
Shopify Resource Picker: Save IDs, Not the Payload
Open the Shopify resource picker with shopify.resourcePicker, treat undefined as cancel, preselect with selectionIds and save only the GIDs.
-
structuredClone vs JSON.stringify: What Each Drops
structuredClone keeps Dates, Maps, BigInt and circular references that JSON.stringify drops, but throws on functions and strips class prototypes.
-
Shopify metafieldsSet: Batch Writes and compareDigest
Shopify metafieldsSet writes up to 25 metafields in one atomic call. Batch by owner to cut query cost, and send compareDigest to stop lost updates.
-
Shopify Customer Privacy API: Build a Custom Banner
Use the Shopify Customer Privacy API to build a custom cookie banner in a theme, record consent with setTrackingConsent and gate third-party scripts.
-
RegExp.escape in JavaScript: Retire Your Escape Helper
RegExp.escape escapes regex characters in JavaScript in any position, covering the cases where lodash and escape-string-regexp break.
-
Shopify render vs include: Convert Without Breaking
Shopify's render tag isolates snippet scope, so swapping it in for include blanks any variable the snippet read from its caller; find them first.
-
Shopify GID to REST ID: Convert Without Losing Digits
Convert a Shopify gid to a REST ID with legacyResourceId or a parser, keep IDs as strings, and stop JSON.parse rounding 18-digit webhook IDs.
-
Node fs.glob: What Breaks When You Drop fast-glob
Node's fs.glob returns directories, skips dot folders under **, ignores ! negation and folds case on macOS. What to wrap before dropping fast-glob.
-
Shopify Structured Data in Liquid: Find the Duplicates
Shopify themes write product JSON-LD with the structured_data Liquid filter, sometimes twice a page; find each call site and remove the extras.
-
Shopify Storefront API Image Transform: srcset and Crop
Use the Shopify Storefront API image transform to resize and crop, then build a srcset that never asks the CDN for an upscaled image.
-
Node url.parse() Deprecated: Why the Warning Hides
Node 24 and 26 warn about deprecated url.parse() only for your own code, so find dependency calls and swap in new URL() before a bad port throws.