Skip to main content
Contributor I
January 9, 2025
Solved

Faulty codes for welcome email and discount code not showing

  • January 9, 2025
  • 4 replies
  • 162 views

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.

    4 replies

    MANSIR2094
    Expert Problem Solver IV
    Expert Problem Solver IV
    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.

     

     

    Mansir Digital Portfolio
    Mike-H
    Problem Solver II
    Mike-HAnswer
    Problem Solver II
    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.

    E-Commerce Operations & Automation Consultant
    Romoke
    Contributor III
    Contributor III
    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

    Watsapp Number : +234-7042366365
    Christiannoerbjerg
    Expert Problem Solver II
    2025 Champion
    January 9, 2025

    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