Blueprint for Sub-Second Loading Shopify Custom Themes
How we code lightweight custom Liquid templates and control third-party app scripts to hit 90+ Lighthouse targets.
Read article →Shopify Development

Shopify Functions let you customize Shopify's backend logic at checkout — discounts, validations, delivery, and payment — without injecting scripts into checkout.liquid (which is gone). The current Discount Function API (2026-07) is the one we ship for brands that need rules the admin UI cannot express.
Older Function APIs split product, order, and shipping discounts into separate targets. The unified Discount Function API processes one discount (code-based or automatic) and can apply savings across three classes at once: product, order, and shipping. One function can reduce both the order total and delivery cost in a single pass.
Shopify documents a hard cap: you can activate a maximum of 25 discount functions per store. They run concurrently and have no knowledge of each other. Combination still follows the stacking rules on the discount node.
The function reads cart.lines and discountNode.metafield via a GraphQL input query, then returns candidate operations. Configuration lives in an app metafield so merchants can change SKUs and percentages without a redeploy.
Source: Discount Function API (2026-07).
Keep reading
How we code lightweight custom Liquid templates and control third-party app scripts to hit 90+ Lighthouse targets.
Read article →Theme blocks in /blocks, @theme + @app support, and the _blocks.liquid wrapper Shopify uses when Sidekick generates a block.
Read article →Tell us the store, the apps, and the deadline. We reply with a build sequence and a fixed-scope number.
Comments (0)
No comments yet. Be the first to ask or add something.