I was using the Shopify Script Editor app to apply shipping discounts at checkout, and it was working fine (Please see the attached screenshot) automatically combining with other product/order discounts. Since scripts are going to be deprecated, I moved to Shopify Functions and created a shipping discount using shopify shippping discount function there using the same conditions as in the Script Editor. The issue is that to combine it with other product/order discounts, I have to allow all existing discounts to combine with this new shipping discount. I have thousands of discounts like that. What is the alternative to achieve this in Shopify Functions?
Topic summary
Topic: Maintaining a shipping discount that combines with other discounts after migrating from Scripts to Functions.
- Previously: Using Shopify Script Editor to apply a shipping discount at checkout that automatically combined with product/order discounts.
- Change: Scripts are being deprecated, so the merchant rebuilt the logic using Shopify Functions (shipping discount function) with the same conditions.
- Problem: In Functions, combining requires enabling “combine with other discounts” on each existing product/order discount. With thousands of discounts, this is impractical.
- Ask: Is there an alternative in Shopify Functions to achieve automatic combination with other discounts without retroactively enabling combine on every discount?
- Context: An attached screenshot illustrates the prior setup/behavior with Scripts; it’s central for understanding the expected outcome.
- Status: No solution or action items reported yet; the request remains open for guidance or alternatives.
