O
O
Oleg Korolenko2017-08-29 08:53:56
css
Oleg Korolenko, 2017-08-29 08:53:56

How to understand from which *.tpl file the opencart page is loaded?

1b5badcf075c41adbf10ddc83d14b1c5.png
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

1 answer(s)
H
halfhope, 2017-08-30
@legoex

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 question

Ask a Question

731 491 924 answers to any question