Dear Shopify Developers,
When you create a discount code in Shopify Admin, you can generate a link to share this discount.
This looks something like this:
https://my-domain.com/discount/Test%2520Discount?redirect=%2Fpat****h
(where path is a placehodler for the path to website you wanna redirect to after the discount has been applied)
I have created 2 discounts this way.
When a customer clicks a certain button on my website, I want both discounts to be applied and the customer to be redirected to checkout.
I first tried to put the one sharable discount link on a first button. The first sharable discount link does not redirect to a new page. So it looks like this:
https://my-domain.com/discount/Test%2520Discount1?redirect=%2Fpath-to-current-site
(where path-to-current-site is a placeholder for the path to the current site)
On a second button I put the second sharable discount link, which redirects to the checkout: So it looks like this:
https://my-domain.com/discount/Test%2520Discount2?redirect=%2Fcheckout
The problem is that only the discount from the last clicked sharable discount link is applied to the products in the checkout.
Is there a way to apply two discounts at the same time with one sharable discount link? If so, what does this look like?
Thanks for your help in advance!