eCommerce
Shopify Online Store 2.0: Sections, Metafields and Custom Templates
Online Store 2.0 lets a Shopify team build product, collection and landing pages from sections and structured data instead of asking a developer every time. Here is how JSON templates, section schemas, metafields and metaobjects fit together, and the mistakes that make a 2.0 theme hard to live with.

Plenty of Shopify stores run a theme that technically supports Online Store 2.0 but is still used the old way. Product descriptions are walls of pasted HTML, the same size guide is copied onto hundreds of products by hand, and any page that needs a different layout means a ticket for a developer. The tools to fix that have been in Shopify for years; they just have to be set up deliberately.
In our Shopify development work, most theme projects now start with a content model rather than a design: what the team needs to change, how often, and which information belongs to products rather than pages. This post explains the parts of Online Store 2.0 and how we use them together.
JSON Templates and Sections Everywhere
Before Online Store 2.0, only the home page could be built from sections in the theme editor. Product, collection and content pages used Liquid templates with a fixed layout. In 2.0 those templates are JSON files, such as templates/product.json, which list the sections on the page, their order and their settings. The theme editor reads and writes that JSON, so merchants can add, remove and reorder sections on every page type.
A few details shape how we design a theme:
- A JSON template can hold up to 25 sections, and each section up to 50 blocks. That is plenty, and a sign that one giant do-everything section is the wrong design.
- Section groups, typically for the header and footer, let those areas hold several sections too, such as an announcement bar or a newsletter band, edited once for the whole site.
- Each section's schema declares where it may be used with enabled_on and disabled_on, so a product-only section cannot be dropped onto the cart page by mistake.
- App blocks let apps place content inside a section, such as reviews or a subscription selector, without editing theme code, which keeps uninstalls clean.
Newer themes, including Shopify's own Horizon family, also use theme blocks: reusable blocks kept in their own folder that can be nested and shared between sections. They reduce duplication, but the principle is the same: build small, configurable pieces with sensible defaults and presets.
Alternate Templates for Different Kinds of Page
Not every product should look the same. A gift card, a made-to-order item, a bundle and a simple accessory each need a different emphasis. Online Store 2.0 handles this with alternate templates such as product.made-to-order.json, collection.lookbook.json or page.landing.json. Each is created in the theme editor or in code, then assigned to individual products, collections or pages in the admin.
We keep the number of alternate templates small and name them for their purpose rather than a campaign. Ten near-identical templates means ten places to fix when something changes, and nobody remembers which one the spring sale used.
Metafields: Structured Data on Products and Beyond
Metafields store extra fields on products, variants, collections, customers, orders, pages and the shop itself. The 2.0 approach is to create metafield definitions in the admin under custom data, each with a namespace and key, a type and validation rules. Types include single-line and rich text, numbers with units, dates, colours, files, URLs, references to products, collections or metaobjects, and lists of most of these.
Definitions matter for three reasons:
- Editors get a proper input on the product screen, with validation, instead of a free-text box.
- Section and block settings in the theme editor can be connected to a metafield as a dynamic source, so one "specifications" block shows each product's own values without any Liquid changes.
- Definitions can be exposed to the Storefront API and used as storefront filters through Shopify's Search & Discovery app, which is how customers filter by material, wattage or dietary requirement.
In Liquid, a value is read with something like product.metafields.custom.material.value. The .value matters: for references and lists it returns the resolved objects, not raw IDs, which keeps templates simple.
Metaobjects for Content That Repeats
A metafield belongs to one resource. Metaobjects are standalone, reusable entries with their own definition: a size chart, a designer profile, an ingredient, a store location, a care guide. You define the fields once, create the entries, then reference them from product or collection metafields.
The payoff is maintenance. When a size chart changes, you edit one entry and every product that references it updates. Metaobject entries can also be published as their own web pages through a metaobject template, which works well for designer or ingredient pages that deserve to be indexed in their own right. Metafield and metaobject content can be translated through Shopify's translation tools, so multilingual stores stay consistent.
Before building with metaobjects we look at how the store already holds this content. Older stores often keep product data in third-party metafield apps with improvised namespaces, or in description HTML; moving that into defined fields is usually part of the job, and it is scripted through the Admin GraphQL API rather than done by hand.
Working With Code Without Losing Merchant Edits
The trickiest part of 2.0 for development teams is that JSON templates and config/settings_data.json are edited by merchants through the theme editor. If a developer deploys a theme from Git without first pulling those changes, the merchant's layout work is overwritten.
Our front-end development workflow avoids that:
- Shopify CLI and shopify theme dev for local development against a development theme, never the live one.
- Shopify's GitHub integration on the live or staging theme, so edits made in the theme editor are committed back to the branch automatically.
- Deployments that push code files such as sections, snippets, assets and locales, while JSON templates and settings are pulled from the store rather than overwritten, unless a template change is deliberate.
- Theme Check in continuous integration to catch Liquid errors and performance problems before they reach a theme.
Upgrading a Vintage Theme
Stores still on a pre-2.0 "vintage" theme have two routes: move to a current 2.0 theme and rebuild the customisations, or convert the existing theme by turning Liquid templates into JSON templates and hard-coded markup into sections. For a heavily customised design, conversion can preserve what customers recognise; for most others, starting from a well-built 2.0 base is faster and leaves less legacy code. Either way, the content model comes first, and product descriptions full of embedded tables usually need cleaning into metafields. Our wider eCommerce development team handles the data side of that.
Whether a requirement belongs in the theme, a metafield, an app or a custom app is a separate question, covered in our post on Shopify apps versus custom development. If a page builder app has crept in to fill the gaps, check what it adds to page weight; our speed optimisation work often starts there. For campaign-heavy stores, sections and alternate templates are also what make busy periods manageable, as we describe in preparing a Shopify store for gift peaks.
If your theme editor is not doing what your team needs, tell us which pages you change most often and we will show you how the templates and data could be structured.
Frequently Asked Questions
How do I know if my Shopify theme supports Online Store 2.0?
Open the theme editor and go to a product page. If you can add, remove and reorder sections there, not only on the home page, the theme uses JSON templates and supports 2.0. Themes from the Shopify Theme Store have supported it for years; older custom or purchased themes may not, and the themes list in the admin may label them as vintage.
What is the difference between a metafield and a metaobject?
A metafield is an extra field attached to one thing, such as a product's material or a variant's weight. A metaobject is a separate, reusable entry with its own set of fields, such as a size chart or a designer profile, which many products can point to. Use metafields for values unique to an item and metaobjects for content that is shared.
Can metafields be used for filtering on collection pages?
Yes. Product and variant metafields of supported types, such as text, numbers, booleans and metaobject references, can be added as filters through Shopify's Search & Discovery app, provided the theme renders storefront filters. Values need to be consistent, so filters are another reason to use defined fields with validation rather than free text.
Will converting to an Online Store 2.0 theme affect SEO?
Product, collection and page URLs on Shopify do not change when you switch themes, so the main risks are in the markup: headings, structured data, internal links and page speed. We check those on the new theme before publishing it, and keep content such as descriptions intact or moved into metafields that still render on the page.
Do we need a developer to use sections once the theme is built?
Not for day-to-day work. A well-built 2.0 theme lets your team add sections, change content, reorder pages and create landing pages in the theme editor. A developer is needed to create new kinds of section or block, change how data is modelled, or add functionality the theme does not already have.











