Blog
-
Shopify Thank You Page Survey: Save Answers to Orders
A Shopify thank you page survey cannot write to the order, which may not exist yet, so post the answer to your app and set an order metafield later.
-
Shopify Storefront API Sort Products: sortKey Traps
To sort products with the Shopify Storefront API, pass sortKey and reverse, but collections and the products query take different sort key enums.
-
Node.js Zstd Compression: The 8 MB Window Rule
Node.js zstd compression works in node:zlib, but levels 20 to 22 exceed the 8 MB window that Chrome and Firefox will decode.
-
Shopify app/uninstalled Webhook: Fix the Silent 500
Why the Shopify app/uninstalled webhook returns 500 for idle shops on expiring offline tokens, and a session-free handler that cleans up every time.
-
Shopify Country Selector in Liquid, No JavaScript Needed
Build a Shopify country selector in Liquid with the localization form, country_code and language_code, plus the URL and accessibility traps after it.
-
Fetch Upload Progress: Use XHR, and Distrust 100%
Fetch has no upload progress event, so use XMLHttpRequest or confirmed chunks; a request stream counts bytes read and breaks outside Chromium.
-
Publish a Shopify Product to a Sales Channel via API
Publish a Shopify product to a sales channel via API with publishablePublish: find the publication ID, hold the scopes, then read the state back.
-
Shopify Function Instruction Limit: Measure and Cut It
Shopify Functions get 11 million instructions up to 200 cart lines, so measure with the CLI, trim input and loops, and test Rust before porting.
-
Fetch keepalive vs sendBeacon: Limits, CORS and Failures
Fetch keepalive vs sendBeacon: use sendBeacon for fire-and-forget telemetry, keepalive for headers or a response, and mind their shared 64 KiB limit.
-
Shopify Webhook Filters: Syntax, Traps and Events
Shopify webhook filters drop deliveries based on current payload values, so they cannot see a change, and a bad field name silently stops every delivery.
-
Shopify robots.txt: Edit It Without Losing Default Rules
To edit a Shopify robots.txt, add robots.txt.liquid, then diff the output, because the template can swap in older rules than Shopify's default.
-
Mock fetch in the Node Test Runner: Pick the Right Layer
To mock fetch in the Node test runner, stub globalThis.fetch with t.mock.method, or use MockAgent or MSW when the real fetch code should run.