Solved

Dynamic checkout code (auto-apply) not working

  • 10 November 2023
  • 2 replies
  • 85 views

Badge

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

icon

Best answer by Akers Digital 14 November 2023, 05:12

View original

2 replies

Userlevel 2
Badge +7

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

 

Userlevel 6
Badge +21

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

Reply