anyone have any luck appending multiple discounts with the
/discount/ endpoint in the cart? seems like Shopify allows one code during the cart, but the multiple during the checkout. When I enter a valid discount code in the cart, but where 1 code is already active in cart, it replaces the 1 code instead of allowing the stacking.
doing a fetch like this:
fetch(`/discount/${encodeURIComponent(code)}?redirect=/cart`)
Any ideas, much appreciated! Thank you so much!
Hi @Kamaboko ,
You’re correct—Shopify allows multiple discount codes to be stacked at checkout, but in the cart, only one discount code can be applied at a time. When you apply a new discount code using /discount/{code}, it replaces the existing discount in the cart instead of stacking.
Hope this helps 
1 Like
Ohhh okay gotcha, thank you so much @Abel_Lesle . Bummer it can recognize the 2 codes in cart if you enter during the checkout and go back. And sad but can’t be added from custom endpoint. Hope they add this feature in the future!
1 Like
Can you share the use case here @Kamaboko , there might be an alternative through discount functions.
Might be able to suggest an approach here.
Regards