Hello all,
I got one question. I am using a shopify app that give me the ability to send 3 email abandonded cart emails to my customers. I have created a coupon discount code that i provide to a returning customer and what i want to do is with a button inside the email to bring them back and the discount would be calculated automaticaly in checkout and not customer have to write it down inside coupon box. Is that capable? What is the command which i have to write in the button in order discount will be automatily calculated?
Thank you in advance
@manosmstr07
Welcome to the Shopify community!
Thanks for your good question.
i think their is No, solution for this because you are asking for the abundant cart Email discount,.
with out adding the discount or coupon code this will can’t work.
I hope you got my point what i am saying,
Let me know, if you need any more help.
Thank you.
@Zworthkey
So you mean the only way that customer can get the discount is by copy/paste the code we send in checkout coupon box? Cause af far as i know for example wordpress allows that.
Thanks 
@manosmstr07
WordPress and Shopify both are different platform.
Hey,
I’ve posted an answer to your question already in the Ecommerce Marketing category. I’ll post it also here because the response provided so far is misleading.
It is possible to add a discount code to the abandoned checkout link that will apply the discount automatically.
For example, if the abandoned checkout URL looks like this:
https://yourshop.com/1234567890/checkouts/ac/0123456789abcdef0123456789abcdef/recover?key=fedcba9876543210fedcba9876543210
Then you need to add &discount=ABC at the end of the checkout URL, assuming that ABC is the discount code:
https://yourshop.com/1234567890/checkouts/ac/0123456789abcdef0123456789abcdef/recover?key=fedcba9876543210fedcba9876543210&discount=ABC
Now, the question is how to do it in an automated way. Surely, you need a variable that holds the abandoned checkout URL. Such a variable is available in the Shopify built-in cart recovery email as {{ url }}. To add a discount to the Shopify abandoned cart email, you need to use the following code:
{% if url contains '?' %}{{ url | append: '&discount=ABC' }}{% else %}{{ url | append: '?discount=ABC' }}{% endif %}
More details available in the Shopify help article about discounts for abandoned checkout recovery email.
It may be also possible with some email marketing tools that integrate tightly with Shopify. The abandoned checkout URL variable will most likely have a different name and syntax. Try searching for abandoned cart merge tag or personalization field.