I’ve built an Order Discount Function to apply 20% off when subtotal > €160. I need it to be exclusive — no other discount codes should be allowed. Since Shopify Functions can’t detect or disable discount codes, how can I programmatically block other applied discounts when mine is active? This was possible via Scripts but not with Functions.
Hi - I believe this may be possible to achieve using the Discounts Allocator Function API, but this is currently only available in developer preview. You should be able to use the DiscountApplicationStrategy enum to only allow a specific discount to apply.