Skip to main content
Solved

HTML error when exporting to Shopify

  • May 11, 2023
  • 1 reply
  • 159 views

Forum|alt.badge.img+1

Hi,

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

 

 

Best answer by chloe.strange

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

chloe.strange
Community Manager
Forum|alt.badge.img+42
  • Community Manager
  • 433 replies
  • Answer
  • May 11, 2023

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