Intentkiln

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.

Scan checkout leaksFree leak checklist

The actual problem

Shopify Functions automatic discounts fight with discount codes — carts underprice or reject valid codes.

Do this

  1. Reproduce code + automatic discount on a kit SKU.
  2. Set combination rules intentionally; remove legacy Script Editor leftovers.
  3. Export orders with both discount types; flag margin outliers.
  4. Freeze Function deploys during major promo weekends.

Tools for this job

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

Deep-dive report — $29

Self-serve checklist expansion for this query family. PayPal Checkout. No call.