A
A
Alexander Arbuzov2017-09-26 16:10:48
Prestashop
Alexander Arbuzov, 2017-09-26 16:10:48

How to understand which template is used by a module?

There is a onepagecheckoutps module, I can't figure out where it takes the tpl to display the cart.
Already closed all the folders inside, but he doesn’t care, the basket is still displayed.
How to turn it around?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Verbin, 2017-09-26
@rez0n

Generally tpl's in wievs/front
But this module may have rewrites in your theme directory modules/onepagecheckoutps/

I
Ivan Ilyasov, 2017-10-06
@IvanIlyasov

Usually in

your_site/modules/your_module/views/templates/front/

or it can be overridden in the theme: your_site/themes/your_theme/modules/your_module/
To find out which file is needed (a hundred-pound method) :
  1. Download the module to your computer
  2. Install the Folder Find Text program (or similar, this program for Windows)
  3. Visit your website (preferably via Chrome)
  4. Hover over your shopping cart
  5. Right Click > View Code
  6. Copy the name of the id or class of this element and search in the module folder using Folder Find Text.
  7. Everything. The program found the desired file (or several)
  8. Using Notepad++ (or similar) open the file/files one by one
  9. Look for the same id or class name through search (Ctrl+F) and match with what you see in the "Chrome Developer Tool"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question