Vlastni twig soubor

https://stackoverflow.com/questions/45542726/opencart-3-x-including-a-new-template-file To add your own custom twig file and include it inside another existing one you need to do three things: Create the actual custom twig file. In your case it will be: catalog/view/theme/customtheme/template/common/header_home.twig Create a controller for that twig file. In your case you can just copy: /catalog/controller/common/header.php and rename that to header_home.php. Edit … pokračovat ve čtení