Skip to main content
Contributor I
November 10, 2023
Solved

Dynamic checkout code (auto-apply) not working

  • November 10, 2023
  • 2 replies
  • 321 views

Hey, 

I wanted to set up my dynamic checkout code - which is not working, this is my code:

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

When I do the “send test” it works, but when I try it on another device with another email it just takes me on the homepage and does not add the discount.

In theory this should work. (I tried replacing & with ? also).

  • I set up discounts correctly. As by guide in klaviyo etc.

 

Any tips how to solve this?

 

Filip

This topic has been closed for replies.
Best answer by Akers Digital

Hey @FilipFitoFito , 

How’s this coming along? Still having issues with the code automatically applying to checkout?

The best way to test this is actually with a live send vs a preview or test send. Here is some more info on this style email from Klaviyo:

 

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

2 replies

Edgar Emmanuel
Problem Solver III
Problem Solver III
November 11, 2023

Hey Filip, the code seems correct. Quick one, did you add the URL above to the URL part of the checkout button within your Klaviyo email template editor?editor.

 

​​​​​Try that to see if that's the problem. I'd like to know

 

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
November 14, 2023

Hey @FilipFitoFito , 

How’s this coming along? Still having issues with the code automatically applying to checkout?

The best way to test this is actually with a live send vs a preview or test send. Here is some more info on this style email from Klaviyo:

 

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