W
W
wowastrom2018-01-29 04:01:06
JavaScript
wowastrom, 2018-01-29 04:01:06

In Opencart, I connected the script in the header, it worked on the main page, but it is not visible on all other pages, what could be the problem?

In Opencart, I connected the script in the header, it worked on the main page, but it is not visible on all other pages.
And it seems that I updated the modules and cleared the cache. At the same time, the strangest thing is that it is not connected, even though the idea is that the same hat is used.
This is the page code from the main page
5a6e721f2ad98561053260.png
And this is from any other
5a6e722727aa6290005411.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
W
wowastrom, 2018-01-29
@wowastrom

Thank you all for the advice, but they did not help, I found how to fix it, I just raised the links above and it all worked.

A
Anton, 2018-01-29
@Eridani

Because relative to the main page, your script is located along this path, but not from the internal ones, because your path is not from the "catalog" root, but from the "/catalog" root

Z
zoozag, 2018-01-29
@zoozag

Most likely you connected the files in the wrong place, write where you made the changes.
It needs to be included in the file: /catalog/view/theme/default/template/common/header.tpl

S
Shadowman69, 2018-01-29
@Shadowman69

I'm not familiar with opencart. but I wrote a self-written site in python (+ django), and the reason may be that you can inherit from the main page and did not include this script in the inherited block.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question