Have a discount be triggered by a certain "Total" and not by a "Subtotal"
under review
Tobe Osakwe
Merged in a post:
Optimize subtotal-based tag discounts for large carts
È
Ève Simon
We found a workaround on our side by building the Buy-In discount as a custom Shopify Discount Function, and it made me think there may be room for an optimized execution path in Regios for simpler discounts.
Our use case is:
- cart subtotal determines the tier
- $30K+ → 5% on products tagged buyin10%
- $60K+ → 10% on buyin10%and 5% onbuyin5%
- product eligibility is based on Shopify product tags
- the discount still needs to work dynamically from the cart subtotal
In our testing, Regios was hitting a line-item ceiling around 218 to 270 lines depending on the split, while a custom Function that used Shopify's subtotal input directly stayed stable on carts larger than 300 line items.
It may be worth adding a more optimized code path for simple subtotal + product tag + percentage discount rules, so the app can avoid recalculating subtotal from cart lines and rescanning the cart for each branch or tier.
Some ideas that seemed relevant:
- use cart.cost.subtotalAmountdirectly instead of recalculating the subtotal from cart lines
- determine the applicable tier only once per execution
- scan the cart only once and evaluate all eligible products in that same pass
- avoid rescanning the full cart for each condition, tier, or branch
- parse the discount configuration once at the beginning
- run cheap eligibility checks first and return early when the discount cannot apply
- group cart lines that receive the same percentage instead of creating unnecessary extra work
This is not a request for a custom build on our store, just a product improvement idea from real testing on a very large cart.
If you'd like us to add this feature to our app, please upvote and comment on this thread.
P.S. This feature request was generated via AI, based on the conversation with the customer.
Regios Bot
updated the status to
under review
Tobe Osakwe
updated the status to
in progress
Regios Bot
updated the status to
closed
Tobe Osakwe
updated the status to
in progress
Regios Bot
updated the status to
closed
Tobe Osakwe
Merged in a post:
Shipping Discount when subtotal after discounts is a certain price
J
Jill Rouse
We like to have free shipping when the subtotal of the cart, after any product discounts is $50 and up. But when trying to apply the subtotal or the cart total it always says before any discounts. It needs to be able to say after applicable discounts because shipping is always charged last.
Tobe Osakwe
Merged in a post:
Setting a minimum purchase amount to be calculated after all other discounts
A
Ashley Bryan
In Shopify, discounts are not applied sequentially or one by one. Instead, each potential discount is calculated before any discounts are applied, and Shopify then determines which discounts to apply based on the combination settings.
Is it possible to create a workaround for this?
Tobe Osakwe
We are working on adding a new "Subtotal (after product discounts)" option to Minimum purchase requirements, but as foreseen, it's requiring significant changes to the entire app. Therefore, it will take more time until this is available. We've already spent 15+ hours on it, and more changes will be required. We'll keep you posted, but in the meantime, thanks for your patience.
Tobe Osakwe
We have added a new option to "How to handle items already on sale:" "Stack discounts on top of sale price and product discounts."
This is the default for new order discounts. For existing discounts, you would need to manually change the setting.
Please note that, due to Shopify limitations, this feature has some restrictions. They are listed here: https://regiostech.crisp.help/en/article/stack-discounts-on-top-of-sale-price-and-product-discounts-option-f4k9uh
TL;DR - Percentage order discounts can be applied to the subtotal AFTER product discounts if they have simple product eligibility. If there is a "Maximum quantity," it usually will be converted to fixed amount. In all other cases, discounts will still apply based on the subtotal BEFORE product discounts.
Photo Viewer
View photos in a modal
Load More
→