Applying multiple discount codes in cart

With the introduction of stackable discount codes, I have a client who want their VIP customers to automatically have applied multiple discounts to their cart before checkout.

Sadly it looks like you can’t use the shareable discount URL, as it replaces the existing discount code with the new one:

https://storename.myshopify.com/discount/discountcode1?redirect=/cart

https://storename.myshopify.com/discount/discountcode2?redirect=/cart

The above will result in dicsountcode2 to be applied and discountcode1 to be removed.

Then I tried adding the following lines to the form on the cart page:


This of course only adds the last discount code to the checkout, so I also tried doing it as an array, but this does not work at all:


Am I missing something here? I searched all the documentation on the topic, but can’t seem to find a solution to add multiple discounts using the native was in Shopify.

Anyone have had any luck with this?

Hey @JesperM ,

I can’t really help with this but was just wondering when the stackable discount code feature went live for you in your store(s)?

I cant see it in my admin still atm…

Thanks,

George

Hey @George_Greenhil

It went live a couple of days ago on the shops I manage. :slightly_smiling_face:

Best,

Jesper

@JesperM

Thanks for letting me know, I’m in the UK which is normally a little behind other areas so hopefully it will be live soon here as well! :slightly_smiling_face:

We can’t seem to even be able to apply a single discount code on the page?
Does this actually still work in 2022?


Hi @JesperM

Did you ever figure out a solution for the above?

It should still work, did you place it inside the form tag on the cart page it self?

Sadly not @GoodDogOz :confused:

1 Like

Thanks Jesper! I suspected as much after we spent a bit of time trying to figure out a workaround. Disappointing but we will look to bring in another app to do what wea re trying to do here (eg) provide tagged users with both a product discount and free shipping automatically.

1 Like