All theme template files must extend layout.twig file, which include: header ,footer and main_content blocks.
Copy { % extends " layout.twig " % } As an example: layout.twig
In each page, there are specified data available for developers to consume, which will give the developer a large space to show and use their skills in building a theme.
Available data across all theme template
template (string with template name ex: home, products ..etc )
url: /
In home.twig display modules added by user by home_template_modules check home template modules
url: /products
file: products.twig
data: products list
url: /products/{slug}
file: product.twig
data: product
templates: template_for_product_variants_dropdown , template_for_product_input_fields , template_for_product_option_fields
url: /categories
file: categories.twig
data: categories list
url: /category/{id}/{slug}
file: category.twig
data: category and products list
url: /cart/view
file: cart.twig
data: cart
Shipping and payment
url: /shipping-and-payment
file: shipping-and-payments.twig
data: store payment methods , store shipping methods and store banks
url: /faqs
file: faqs.twig
data: faqs
url: /blogs
file: blog.twig
data: blogs
url: /blogs/{slug}
file: blog.twig
data: blog
url: /pages/{slug}
slug: must be one of:
complaints-and-suggestions
file: page.twig
data: page
Account profile
url: /account-profile
file: account-profile.twig
template : account_profile_template_content
Account addresses
url: /account-addresses
file: account-addresses.twig
data: addresses
url: /account-orders
file: account-orders.twig
data: orders
Account address
(system template)
url: /account-addresses/{id}/edit
navigate customer to the url and system will display address content
use url: /account-addresses/add
to navigate customer to add new address
(system template)
url: /orders/{orderCode}/invoice
navigate customer to the url and system will display order content