Personalized checkout and custom promotions with Shopify Scripts
Should just be able to check Input.cart.discount_code and if true then a discount exists, not 100% sure if that works with automatic discounts.
Inspect some of the sample checkout-scripts
https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/line-item-scripts
Similar post seems like it's not obvious to detect automatic discounts and it's rules? not possible?
https://community.shopify.com/c/shopify-scripts/detect-automatic-discounts/m-p/674105
@IvGordiichuk wrote:The user on the checkout can choose whether to use a script discount or enter his own coupon. If you entered a coupon, the script does not work and the coupon discount is applied. If you deleted the coupon - a discount from the script.
Not sure that can be done with just checkout-scripts and would need customizations to checkout.liquid itself for a back and forth system.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025