تخطَّ إلى المحتوى

المفاهيم الأساسية › القوالب

القوالب القابلة للاستبدال

غير مترجمة بعدهذه الصفحة متوفرة بالإنجليزية فقط حتى الآن، وتُعرض أدناه بالإنجليزية بدل حجبها.

These are the template names the storefront looks for. A theme provides the ones it has designed; any it leaves out are rendered by the platform's default theme instead — see Template Fallbacks.

TemplateRendersServed
layout.jinjaThe frame every page extendsRequired
home.jinja/Yes
404.jinjaAny address the store does not serveYes
products.jinja/productsWith product pages
product.jinja/products/{slug}With product pages
categories.jinjaThe category indexWith product pages
category.jinja/categories/{slug}With product pages
page.jinja/pages/{slug}With content pages
search.jinja/searchWith search
cart.jinja/cartWith the cart
checkout.jinjaCheckoutWith checkout
order.jinjaAn order's confirmationWith checkout

layout.jinja is the one template a theme cannot leave out. It is where the platform tags go, and a theme without it — or with a layout that does not place both tags — is refused.

A template for a page that is not served yet is still compiled and checked when your theme loads, so it can be written and tested now. It simply is not rendered until its page exists.

Partials are yours

Anything a template includes — partials/header.jinja, partials/product-card.jinja — is named by you and never rendered on its own. The storefront only ever asks for the names in the table above.