Solved

Discount code in Abandoned Checkout Flow

  • 19 July 2022
  • 6 replies
  • 1062 views

Userlevel 3
Badge +11

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!

icon

Best answer by Akers Digital 31 August 2022, 06:03

View original

6 replies

Userlevel 2
Badge +7

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.

Userlevel 3
Badge +11

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.

Userlevel 7
Badge +38

Is this for a shopify site? @thepowerofcopy 

Userlevel 2
Badge +7

Hey @thepowerofcopy yes I am

Userlevel 6
Badge +21

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

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?

Reply