A space to discuss online store customization, theme development, and Liquid templating.
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:
<input type="text" name="discount" value="discountcode1" >
<input type="text" name="discount" value="discountcode2" >
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:
<input type="text" name="discount[]" value="discountcode1" >
<input type="text" name="discount[]" value="discountcode2" >
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
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! 🙂
We can't seem to even be able to apply a single discount code on the page?
Does this actually still work in 2022?
<input type="text" name="discount" value="discountcode1" >
It should still work, did you place it inside the form tag on the cart page it self?
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.