Is it possible to regulate automatic discounts on Shopify products?

Wattie
Shopify Partner
1 0 0

Hi

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?

 

Cheers,

Jas

Replies 4 (4)

oscprofessional
Shopify Partner
15830 2369 3072

Hello ,

You are using shopify or shopify plus?

In shopify we have no control of checkout page.

Refer this for discount code:

https://www.huratips.com/tech-tips/adding-discount-code-cart-page.html

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing

wildabeast
Excursionist
16 0 9

@Wattie did you find a solution to this? I'm in a similar situation.

I want to make sure Script Discounts don't apply when an Automatic discount is already applied on the cart.

WillTi
Tourist
4 0 0

Does anyone have a solution? I'm pretty interested in it. 

Not applicable

It looks like it is not possible to detect automatic discounts in scripts, only discount codes 😞

https://help.shopify.com/en/manual/checkout-settings/script-editor/limitations

Scripts can access whether a discount code is applied, the amount of the discount, and the type of discount (fixed amount, percentage, or shipping), however they can't access how it applies (cart or line item specific). As such, Scripts can't access post-discount totals, and they also can't access automatic discounts.