I have an automatic discount that is applied on a group of products. But I only want to apply it when these products are configured in a certain way. So I thought I could remove it via a script at checkout. Like removing a discount code that was applied. But it looks like script editor has no ways to check for applied automatic discounts.
Has anyone had any experience with this and know if it's possible?
You are using shopify or shopify plus?
In shopify we have no control of checkout page.
Refer this for discount code: