Blog
-
Shopify Checkout Address Autocomplete: Bring Your Own
Shopify checkout autocompletes addresses in 23 countries already, and plugging in your own provider needs Plus and two checkout UI extension targets.
-
Shopify orders/create vs orders/paid: Which to Trust
Use orders/create plus orders/updated and decide on financial_status, because orders/paid can arrive days late or only after you ship.
-
Astro env Schema: Public Values Are Baked at Build
Astro's env schema types and validates your variables, but public values are inlined at build time and only secrets are read at runtime.
-
Oxygen Auth Bypass Token: Run Hydrogen E2E in CI
Create an Oxygen auth bypass token with hydrogen deploy, read it from h2_deploy_log.json, and send it to the deployment URL only from Playwright.
-
Shopify Alternate Templates: Assign and Audit Them
Shopify alternate templates are theme files assigned by suffix on each product, so assign them in bulk with the Admin API and audit for missing files.
-
CSS text-wrap balance vs pretty: Where Each Belongs
Use text-wrap: balance on headings and pretty on paragraphs, and watch the line caps and engine gaps that make each one silently do nothing.
-
Shopify Discount Function Settings: Build the Admin UI
Shopify discount function settings run in an admin UI extension that saves a JSON metafield; link it in TOML and make failed saves reject.
-
Shopify Storefront API Menu: Map URLs to Your Routes
The Shopify Storefront API menu query returns Online Store URLs, not your headless routes, so map each item by resource and type to build working links.
-
Cloudflare Workers Cron Triggers: Why Monday Is 2
Cloudflare Workers cron triggers run in UTC, count Sunday as 1 and match controller.cron exactly, so set them up and test them locally like this.
-
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.