Skip to main content
Contributor I
April 9, 2024
Solved

Hide the variant "default title" for back in stock flow email

  • April 9, 2024
  • 1 reply
  • 103 views

Hi there !

 

I am working on a back in stock flow and I a facing an issue with the email… I wanted the variant to show in the email (The Vase Blue is back in stock) so I had the variant snippet from the tutorial but, if the product has no variant, the “Default title” after the rpoduct name is showing. Would it be possible to add code with a condition so that the variant snippet shows only when the product has a variant and is hidden when it has no variant ?

    This topic has been closed for replies.
    Best answer by annasophiefc

    Hi @LolitaF 

     

    Thank you for posting your question in the Community!

     

    Yes, that is indeed possible. By using django, you can setup additional code for what to show in certain scenarios. 

     

    You can reed more about Django here and see a full tutorial: https://academy.klaviyo.com/customize-and-personalize-emails-using-django/1865943

    Hope this helps!

    1 reply

    annasophiefc
    Partner - Platinum
    2025 Champion
    April 9, 2024

    Hi @LolitaF 

     

    Thank you for posting your question in the Community!

     

    Yes, that is indeed possible. By using django, you can setup additional code for what to show in certain scenarios. 

     

    You can reed more about Django here and see a full tutorial: https://academy.klaviyo.com/customize-and-personalize-emails-using-django/1865943

    Hope this helps!

    Champion & Klaviyo Partner based in Aarhus, Denmark. It is all about communicating the right message to the right people at the right time!