How to use {% include %} in 2.0 theme during migration?

I’m migrating 1.0 theme to 2.0 theme and product.liquid contains a few {% include %} calls to snippets.

Example:

{% include ‘wiser_related’ %}{% include ‘wiser_recommended’ %}{% include ‘wiser_alsobought’ %}{% include ‘wiser_recentview’ %}{% include ‘wiser_topselling’ %}{% include ‘wiser_trending’ %}{% include ‘wiser_newarrivals’ %}{% include ‘wiser_featured’ %}{% include ‘wiser_recent_related’ %}

Where do I migrate this chunk of code and how do I call it from product.json?

1 Like

@samirgoruck

Shopify 2.0 change this {% Include %} to {% render %}

for example

{% include ‘wiser_related’ %}

to

{% render ‘wiser_related’ %}

Hi @samirgoruck ,

With product.json file you can only add JSON code, so you can’t declare include it here.

You can just code it at the file section, have you created the section file for the template?