Skip to main content
thepowerofcopy
Partner - Silver
Partner - Silver
Jul 19, 2022 11:12 AM UTC
Solved

Discount code in Abandoned Checkout Flow

Hello Klaviyo Fam,

 

I’m setting up Abandoned Checkout flow and I want to apply the discount code automatically to checkout page. I use this: 

https://www.mysite.com/STOREFRONT_ID/checkouts/{{ event.extra.token }}&discount={% coupon_code 'NAME_OF_YOUR_COUPON' %}


When I send a preview mail it looks like this: 
 



And the link above it shows like this:

 

QUESTION: How I can check if my set-up is working?

Thank you!

This topic has been closed for replies.
Akers Digital
Partner - Silver
Aug 31, 2022 4:03 AM UTC

Here is a great help article by Klaviyo on how to use coupon codes in various situations with Shopify, it includes how to automatically have discount codes applied to checkout, homepage, and other pages. 

 

https://help.klaviyo.com/hc/en-us/articles/115005253088

6 replies

Edgar Emmanuel
Problem Solver III
Problem Solver III
Jul 19, 2022 2:26 PM UTC

Hi @thepowerofcopy , welcome to the Klaviyo community.

I think the snippet code you are using is not correct.

This is the snippet code to use in your abandoned cart emails to take users back to their checkout and automatically add the discount code to the check out as well:

Grab the discount code and add it to the following link:

{{ event.extra.checkout_url }}&discount={%coupon_code ‘AbandonedCartCouponHere’%}

Then, add the URL to the URL part of the abandoned cat reached checkout button within your klaviyo email template editor.

Try this and let me know if this works.

 

Best regards,

Edgar.

If I've helped you solve your question, feel free to book a call here: https://calendly.com/klaviyo-email-marketing/30min. Or email me at edgar.o@workean.net
thepowerofcopy
Partner - Silver
Partner - Silver
Jul 19, 2022 2:39 PM UTC

Hola @Edgar Emmanuel 

Are you referring to this URL added to that link?
 

 

 

And also How I can check if my set-up is working? Thank you.

Helping consumable products increase revenue by up to 20% by using customer retention strategies through email marketing.
Mailbox Manny
Partner - Silver
Partner - Silver
Jul 28, 2022 3:21 AM UTC

Is this for a shopify site? @thepowerofcopy 

Subscribe. Segment. Send. Repeat.
Edgar Emmanuel
Problem Solver III
Problem Solver III
Jul 29, 2022 12:09 PM UTC

Hey @thepowerofcopy yes I am

If I've helped you solve your question, feel free to book a call here: https://calendly.com/klaviyo-email-marketing/30min. Or email me at edgar.o@workean.net
Akers Digital
Partner - Silver
Partner - Silver
Aug 31, 2022 4:03 AM UTC

Here is a great help article by Klaviyo on how to use coupon codes in various situations with Shopify, it includes how to automatically have discount codes applied to checkout, homepage, and other pages. 

 

https://help.klaviyo.com/hc/en-us/articles/115005253088

Contributor I
Nov 12, 2023 8:27 PM UTC

Here is a great help article by Klaviyo on how to use coupon codes in various situations with Shopify, it includes how to automatically have discount codes applied to checkout, homepage, and other pages. 

 

https://help.klaviyo.com/hc/en-us/articles/115005253088

Hi,

I'm trying to create a link in the abandoned cart flow that includes a discount coupon but I haven't found the shortcode for that. I do it in woocommerce.
Could you help me?