Solved

Template error has 'endif' Issue with HTML export to Shopify

  • 1 April 2022
  • 1 reply
  • 233 views

Badge +3
  • Contributor IV
  • 7 replies

Hi,

 

I have followed the steps on the Klaviyo guide to export my emails from the Shopify templates in Klaviyo to Shopify but despite this, I am still receiving error messages.

 

When exported in Klaviyo and then pasted into Shopify I still receive this message. 

 

 

 

I was assured by Klaviyo support that this would work and am really getting frustrated now!

Please can someone help me?

icon

Best answer by Taylor Tarpley 5 April 2022, 20:28

View original

1 reply

Userlevel 7
Badge +60

Hi @kflo

 

Thanks for sharing your question with us! So sorry to hear you’ve had a frustrating time with exporting your Klaviyo template to Shopify! Happy to help here!

 

First, can you confirm that you are specifically using a Shopify Notification Template here vs. a Klaviyo template? We have separate templates for Shopify that are meant to be exported and issues can arise when users unknowingly export regular Klaviyo to Shopify. 

 

There can be many reasons for template errors, explained more in our Help Center Documentation. Errors like the one you're encountering occur when part of a "conditional statement" is deleted from a default notification template. To fix this, I’d suggest opening the template in Klaviyo and removing the remaining elements of the conditional statement. Search for tags that begin with the following: 

  • { % for item in…
  • {% endfor %}
  • {% if…
  • {% elsif…
  • {% else %}
  • {% endif %}


Once you've identified any tags like that, click into the Source of the text block and delete them, as shown below. Once you do so, you can re-export the template and import it into Shopify and there shouldn’t be any further issues! 
Remove_partial_conditionals.gif

 

Hope this helps! Thanks for participating in the Community! 

-Taylor 
 

Reply