This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Overriding shop templates¶
To override existing shop templates, first create a design for your shop.
1 2 3 4 5 6 7 8 9 10 11 12 | |
Template theme paths
All shop bundles contain an ez_design.yml file which is used to define the templates_theme_path path to the templates.
Without the template theme path, the templates are not recognized by the design engine.
Then, in ezplatform.yaml, indicate that the design should be used for the relevant scope,
for example, for the site_group SiteAccess group:
1 2 | |
Finally, place your override templates in templates/themes/<theme_name>.
For example, to override the left menu in the product catalog view, place the template in
templates/themes/my_theme/Navigation/left_menu.html.twig:
1 2 3 4 5 6 7 8 9 10 | |