Hi,
We build a cart progress bar app (“spend $X, get 10% off / a free gift”). Each tier is its own automatic app discount backed by the same discount Function. A theme app extension and a checkout UI extension tell buyers which tiers they’ve unlocked. On the backend we already read rollouts (Admin API 2026-10, read_rollouts) and follow the “Upgrade your app for discount rollouts” guide.
What we observed on a dev store (tier A = 5% at $500, no rollout; tier B = 10% at $1,000, expired for 50% of traffic):
- For buyers in the expiring arm, tier B’s Function is never invoked. That’s expected.
- A discount activated by a rollout runs even though its own dates are in the past. Also expected.
- Our Function only lets the highest reached tier emit, so tiers never stack. Tier A’s Function can’t tell that tier B is off for this buyer, so it stays silent. On a $1,480 cart the buyer gets no discount at all, although tier A isn’t in any rollout.
- The assignment survived a new
cartcookie and a new_shopify_y. We couldn’t find where it lives, and nothing in Liquid,/cart.js, the Storefront API or the checkout Discounts API exposes it. - In the admin, a rollout can be limited to specific markets and sales channels, but
Rollout(2026-10, 2027-01 and unstable) exposes neither. With the guide’s “safe to promote” rule, a rollout that expires a discount for 100% of traffic in a single market looks to us like it expires it everywhere, so we’d hide the offer in every market.
What would solve it for us, from most to least useful:
- Function input: tell us which of our app’s discounts are active for this cart. For example, a
discounts { id }list in the input (orisActiveForBuyeron sibling discounts). The Function could then pick the highest tier that’s actually served, instead of silencing everything. - Expose the rollout’s market and sales channel targeting on
Rollout(for examplemarkets { id }andchannels), and let therolloutsquery filter on them. It’s a small addition, and without it the guide’s safe-to-promote check gives the wrong answer for any rollout limited to a market or channel. - A stable discount ID on applied discounts:
discount_application.discount_idin Liquid and/cart.js, and the discount node ID on Storefront API and checkout discount allocations. Today, our only link between an applied discount and our tier is its title, which merchants edit and translate. - Let extensions know which of our discounts the current buyer is served, before the cart qualifies: the IDs of the app’s discounts active for this buyer, in Liquid,
/cart.js, the Storefront API and the checkout API. Treatment IDs would also work, but they force every app to replicate how treatments map to discounts. - A rollout change type for app-owned metafields (or app data), so a treatment can swap our config the way it swaps a theme. Our extensions would then read the treatment’s values natively.
Is any of this planned? If a feature request already exists, we’d be glad to add our use case to it.
Thanks!