Answer the question
In order to leave comments, you need to log in
How to understand from which *.tpl file the opencart page is loaded?
Such a question, I'm trying to edit the form parameters. But it finds a huge number of * .tpl files .. I don’t know which one to edit ..
Answer the question
In order to leave comments, you need to log in
Look at the page's route in the GET parameter, it will also be the path and name of the controller. Let's say route=account/register. Go to controller/account/register.php, look at the index function, there, at the very end of the function, the template file is loaded and the path is indicated, let it be account/register too, go to catalog/view/theme/template_name/account/register.tpl. Moreover, if the installed theme does not have this template file, then it will be loaded from the default theme. Do not forget about modifiers in version 2.x, if there are no changes after editing the file, then update the modifier cache or temporarily disable the modifier that edits this file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question