Last verified 2026-07-15
shopify functions discount conflicts with code
Scripts/Functions fighting automatic discounts create chaotic cart math. Reproduce both paths, then kill the conflicting rule before BFCM.
The actual problem
Shopify Functions automatic discounts fight with discount codes — carts underprice or reject valid codes.
Do this
- Reproduce code + automatic discount on a kit SKU.
- Set combination rules intentionally; remove legacy Script Editor leftovers.
- Export orders with both discount types; flag margin outliers.
- Freeze Function deploys during major promo weekends.
Tools for this job
- Tillkiln
Discount stacking leak scan
Scan the live storefront for stacking, OOS-buyable, and dead links before you blame ads → tillkiln.com.
- Shopify Discounts
Combination rules reference
Related intents
Scan the store before more ad spend
Tillkiln finds checkout and storefront leaks — stacking discounts, OOS still buyable, dead collection links — with a rough $ leak estimate.
Also from Cashkiln
- Tillkiln — scan checkout leaks before you buy more ads
- Netkiln sample — client-ready revenue-health page from a payouts CSV ($19 clean unlock)
- Free leak checklist — six operator checks
Deep-dive report — $29
Self-serve checklist expansion for this query family. PayPal Checkout. No call.