Migrating templates to Online Store 2.0

Many Online Store 2.0 features rely on JSON templates. You can migrate your theme to add support for these features by converting a Liquid template into a JSON template, and moving any required Liquid code or HTML into sections that you can include in the new JSON template.

In this tutorial, you'll move the code from a Liquid template file into a section file, and then include that section file in a new JSON template. You'll also add support for app blocks to your sections.

This tutorial uses Debut as an example, and moves code from a product.liquid template file into a product-template.liquid section file, which can then be included in a new product.json template.

You can perform all of these steps using Shopify CLI or the code editor.