Add 2 discounts at once via Add to Cart URL

Hey,

I’d like to add 2 discounts at once with a custom Add to Cart URL.

https://myurl.com/cart/add/41656365023415:1,41623413915831:1?discount=40VOUCHERPROGRAM&discount=50VOUCHERPROGRAM

So with this URL I would like to add 2 products at once and in addition add 2 discounts at once. When I am in the checkout, I can manually add the second one without any problems, however it should be applied automatically. How can I achieve this?

I am trying to do the same thing: adding 2 discount codes to give a % off and free shipping. Did you figure out how to link to multiple discount codes at once?

Same here, did you figured it out? :blush:

anyone got an answer ?

Separate the discount codes with a comma instead of an &.

https://shopify.dev/docs/apps/build/checkout/create-cart-permalinks#step-4-optional-apply-discounts

Like this: https://myurl.com/cart/add/41656365023415:1,41623413915831:1?discount=40VOUCHERPROGRAM,50VOUCHERPROGRAM