Skip to main content
Solved

Applying a discount code and link in an abandoned checkout flow email

  • 2 January 2023
  • 3 replies
  • 1037 views

Hi, I’m trying to learn how to link a discount to a button in an abandoned email. I was confused by the online documentation. Which correct:

 

  1. www.mysite.com/{{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}
  2. www.mysite.com/products/{{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

Thanks!

 

David

3 replies

Userlevel 7
Badge +42

@David H 

it should be just {{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

www.mysite.com/ is already a part of the {{ event.extra.checkout_url }} so you don’t need to add that in front

Badge +2

Thanks Bobi! This helps a lot.

I found the instruction on the Klaviyo site confusing when it said “add to the end of your site link.” Actually, I’m still not sure what they mean. :)

 

If you are sending Abandoned Cart emails (triggered by the Checkout Started event) and would like to link a customer to their abandoned cart with a discount code added, add the following to the end of your site link:

{{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

It actually should be: {{ event.extra.checkout_url|default:organization.url }}?discount={% coupon_code 'CouponName' %}

 

used a ? instead of & before discount=

 

 

Reply