Page 1 of 1

How to see actual file path for template?

Posted: Tue Oct 03, 2017 5:14 am
by turbulence
Trying to figure out why changes I'm making to a template are not loading.

I know that template files could be under /catalog/view/theme/etc, etc, or /storage/modifications/catalog/view/theme, and so on.

So there are different folders that the template file could be loaded from.

Is there any option, or extension, or mod, or whatever, that will show me exactly WHERE the template file is coming from?

Re: How to see actual file path for template?

Posted: Tue Oct 03, 2017 5:23 am
by yodapt
If you have cleared / disabled cache in admin, and none of those changes showed up, your file content is probably coming from the database.

Re: How to see actual file path for template?

Posted: Tue Oct 03, 2017 5:47 am
by sitedeveloper999
I sincerely doubt that the entire category.twig file was somehow cached in the database... unless OC is getting REALLY weird in Version 3.

This is exactly why I'd love to have the option to see exactly where the hell the content is coming from.

Magento has a "reveal path" option, that puts overlays on top of the sections, so you can see exactly what the "building blocks" of the page are.
That's sort of what I'm looking for.

Re: How to see actual file path for template?

Posted: Tue Oct 03, 2017 5:55 am
by IP_CAM
Well, for the older OC - Versions, it exists too ! :D
Hintomania free, OC v.1.5.4.1 - 2.2.0.0
https://www.opencart.com/index.php?rout ... n_id=27211
---
And even for the latest One's:
TemplatePaths - OpenCart Template Path Hints OC v.1.5.4.1 - 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.2.1b:
https://www.opencart.com/index.php?rout ... n_id=24053
Image

Re: How to see actual file path for template?

Posted: Tue Oct 03, 2017 5:57 am
by sitedeveloper999
OMG, so much this.

I'll try to find the OC3 version. Or if you come across one, PLEASE let me know.