Skip to main content
Solved

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

  • January 2, 2023
  • 3 replies
  • 1296 views

Forum|alt.badge.img+3

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

Best answer by Bobi N.

@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

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Bobi N.
Partner - Platinum
Forum|alt.badge.img+45
  • Champion & Partner
  • 453 replies
  • Answer
  • January 2, 2023

@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


Forum|alt.badge.img+3
  • Author
  • Contributor I
  • 1 reply
  • January 2, 2023

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' %}


  • Contributor I
  • 1 reply
  • June 9, 2024

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

 

used a ? instead of & before discount=