Post by sitedeveloper999 » Tue Oct 24, 2017 5:55 am

Let's say I need to make some changes to the way products are displayed in category results. Change some buttons around, styles, etc.
Everything looks good.

But now, if I use the filter (layered navigation / side filter), OR if I use the text search, the list of results is NOT using the category.twig template, but something else. And of course, none of my modifications are working.

In order to avoid having to customize additional template files - is it possible to force OC to use the same template for the default category view, AND the filtered view, AND the search results? It's basically the same exact display, I don't understand why it's showing up in different ways to begin with...

New member

Posts

Joined
Tue Aug 09, 2016 2:09 am

Post by sitedeveloper999 » Tue Oct 24, 2017 5:57 am

Alternately, if anyone at least knows which template files are being used for these different views, I'd appreciate that info.

(Why OpenCart doesn't have a reference list of which templates drive which views, is beyond me...)

New member

Posts

Joined
Tue Aug 09, 2016 2:09 am

Post by IP_CAM » Wed Oct 25, 2017 11:29 am

Why OpenCart doesn't have a reference list of which templates drive which views, is beyond me...

Well, probably because nobody is interested to create one, just for the plain fun of it. But after you learned
about , there is nothing, keeping you from sharing your knowledge with the Rest of the OC World ! :D

But those, playing around with OC, likely know, and others just have to read about on the Web,
how an MVC(L) Framework works, because then, one get's the basic idea about such.

But you may find some answers on this here:
https://isenselabs.com/books/allbooks
https://code.tutsplus.com/tutorials/fro ... -cms-21873
http://www.templemantwells.com.au/blog- ... -reference

Good Luck ! ;)
Ernie

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free Opencart LIGHT v.1.5.6.5_rc Software
can be seen in Action here: http://www.bigmax.ch
---
930+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 36 guests