I have a fly-out sign up form on my web site that includes email signup, SMS signup, and a unique Shopify discount code. On the signup success step is also a button that brings the user to a page to start shopping.
Shopify allows me to use a URL to set the discount code automatically (one less copy and paste for the end user). The URL to automatically use a discount code should look like this:
https://mywebsite.com/discount/UNIQUEDISCOUNTCODE?redirect=/collections/starthere
On the success step for the signup form form, I have the unique discount code (shows up no problem). And I’d love to have the following in the URL for the button on that same step:
https://mywebsite.com/discount/{% coupon_code 'Signup_and_save_10' %}?redirect=/collections/start
However, when I put this in and tested it, I got exactly that (code included) as the URL for the button - not the unique coupon code for that customer - although the unique code was correctly shown in the text box on the same step.
Any way to get this dynamic discount code as a link in the signup form?