Skip to main content
Contributor I
Nov 10, 2023 10:12 AM UTC
Solved

Dynamic checkout code (auto-apply) not working

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.
Akers Digital
Partner - Silver
Nov 14, 2023 4:12 AM UTC

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
Nov 11, 2023 8:39 PM UTC

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
Nov 14, 2023 4:12 AM UTC

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