Skip to main content

Hi,

When i export the HTML code from Klavio to Shopify i get the text: Body html liquid syntax error: Unknown tag current_year.

 

 

Hi @Sergio157

If you're encountering the "Body HTML liquid syntax error: Unknown tag current_year" when exporting HTML code from Klaviyo to Shopify, it suggests that the liquid template engine in Shopify is unable to recognize the current_year tag used in your HTML code. Unfortunately, you cannot always easily export templates from Klaviyo to Shopify as the platforms use different tags. With that said, from doing some research on the topic, it appears that replacing current_year with {{ 'now' | date: "%Y" }} should solve this.

Here is a resource from the Shopify help center with more information about liquid variables as well.

I hope this helps!

~Chloe


Reply