Skip to main content
Contributor I
May 11, 2023
Solved

HTML error when exporting to Shopify

  • May 11, 2023
  • 1 reply
  • 216 views

Hi,

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

 

 

    This topic has been closed for replies.
    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

    1 reply

    chloe.strange
    Community Manager
    Community Manager
    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