Solved

HTML error when exporting to Shopify

  • 11 May 2023
  • 1 reply
  • 49 views

Badge

Hi,

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

 

 

icon

Best answer by chloe.strange 11 May 2023, 22:13

View original

1 reply

Userlevel 5
Badge +28

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