Skip to main content

Hi all! 

 

I’m trying to add a dynamic coupon code button to my abandoned cart flow so that the customer can access a discount on their cart. I did this with the following:

 

https://www.mywebsite.com/STOREID/checkouts/{{ event.extra.token }}?discount={% coupon_code 'TESTCODE' %}

 

When I send a test email I’m then finding the below error message in the discount code section of the cart

 

'Unable to find coupon with code: TESTCODE. It may have been deleted.'

 

The discount code is still valid so I’m wondering why this is happening? Can anybody help? 

@AniMus 

Are you sure you created the TESTCODE as dynamic coupon code in klaviyo? For this to work this code must be created as dynamic in klaviyo and it won’t work with Shopify static codes. If you can share screenshot of how you created the code maybe I can help more, like this I can’t be sure where the mistake happened..

 


I think that was maybe the case! Now when you click on the button it has in the discount code slot on the page “TESTCODE-PREVIEW” - I take it when a customer does it, it will just be the code and not have preview added on which creates an error?


@AniMus 

Yes that is correct.. seeing it as PREVIEW when previewing the email means that the code is working and when the customer get it it will be 8 characters with random letters and numbers


Reply