Blog
-
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.
-
Shopify Admin API Search Syntax: Why Filters Fail
Shopify Admin API search query syntax explained: fields, comparators, quoting, and the silent mistakes that return every product instead of an error.
-
Shopify Migration SEO Checklist: Test Every 301
A Shopify migration SEO checklist for cutover day: test that every old URL answers with one 301 to a live page, then check canonicals and the sitemap.
-
node --run vs npm run: Faster, but Check Exit Codes
node --run starts package.json scripts about 60 ms faster than npm run, but skips pre and post hooks and reports a signal-killed script as success.