Retail templates
Files under theme/templates/retail/ define the starting section tree for each storefront route.
{
"sections": {
"main": {
"type": "main-product",
"settings": {}
}
},
"order": ["main"]
}
The section type points to a Liquid file. settings supplies starting values for that installed section. order controls the initial page order.
Templates contain no HTML, CSS or business calculations. They answer only: which sections start on this route, in what order, with which initial values?
The retail starter supplies templates for home, product, collection, collection list, cart, checkout, search, pages, contact, blog, article, sign-in, orders, wishlist, bookings, booking detail, digital delivery, gift card, password, maintenance and 404 routes.
Keep required commerce sections present on the routes that need them. The visual editor may later change merchant-owned page composition, but the authored template remains the safe starting tree.