Skip to main content
Solved

Faulty codes for welcome email and discount code not showing


Forum|alt.badge.img

Hi there,

I’m having this issue with my welcome email. Klaviyo has generated random unique discount codes on my shopify store that will be revealed upon a customer subscribing to the email list. However, this is what customers are currently seeing. Appreciate help with this! 

 

 

Best answer by Mike-H

Hi there,

You’re missing the {{ from the personalization piece in the beginning.  Should look like this:

Hi {{ first_name|default:"there" }},

For the discount code, it’s something like this, where ‘Subscribe’ is the name of the code you created in Klaviyo codes.

Get 15% Off with code: {% coupon_code 'Subscribe' %}

Hope that’s helpful.

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

4 replies

MANSIR2094
Problem Solver IV
Forum|alt.badge.img+13
  • Problem Solver IV
  • 174 replies
  • January 9, 2025

Hello ​@lemondropfarm 

It seems the discount codes are being improperly revealed in the welcome email. To fix this, check the dynamic variables in your email template and ensure the discount code is linked correctly to each subscriber. If this issue persists or is complex to implement, feel free to reach out, and I can assist you further with the setup.

 

 


Mike-H
Problem Solver I
Forum|alt.badge.img+9
  • Problem Solver I
  • 15 replies
  • Answer
  • January 9, 2025

Hi there,

You’re missing the {{ from the personalization piece in the beginning.  Should look like this:

Hi {{ first_name|default:"there" }},

For the discount code, it’s something like this, where ‘Subscribe’ is the name of the code you created in Klaviyo codes.

Get 15% Off with code: {% coupon_code 'Subscribe' %}

Hope that’s helpful.


Romoke
Contributor III
Forum|alt.badge.img+2
  • Contributor III
  • 5 replies
  • January 9, 2025

Hello ​@lemondropfarm 
 

It seems the issue is with how the unique discount codes are being displayed in your welcome email. I can guide you to fix this or implement the solution for you.

Feel free to reach out if you'd like assistance with the setup or troubleshooting!

Best regards,
Romoke


Christiannoerbjerg
Expert Problem Solver II
Forum|alt.badge.img+12

Hi ​@lemondropfarm 

Thank you for posting in the Community!

Just to give you an explanation. 

For showing the unique discount code, you would need to include the following code into your e-mail: 

{% coupon_code 'NAME_OF_YOUR_UNIQUE_COUPON' %}

That code will help you show the unique coupon.

Hope that helps! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov