Post by X-Bumble » Thu Sep 15, 2016 6:21 pm

Hi there.

I'm running Opencart 2.2.0.0. When I click the page which shows me all of the products, I can see the buttons that allow me to view the products either in a list or in a grid.

My client wants that functionality hidden, but he always wants the products to be shown in the grid format.

Is there any way I can set this?

Many thanks
Last edited by X-Bumble on Fri Sep 16, 2016 5:46 pm, edited 1 time in total.

New member

Posts

Joined
Thu Feb 12, 2015 7:53 pm

Post by IP_CAM » Thu Sep 15, 2016 7:04 pm


My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

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

Post by X-Bumble » Fri Sep 16, 2016 4:40 pm

All of the extensions were for 1.5, but I re-wrote the PHP code and sorted it out myself.

For anyone who wants to know...

Open up: \opencfiles\catalog\view\theme\*your-template-name-goes-here*\template\product\category.tpl

Find line: <div class="product-layout product-list col-xs-12"> (it is line 80 on my editor)

and change it to: <div class="product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12">

New member

Posts

Joined
Thu Feb 12, 2015 7:53 pm

Post by IP_CAM » Fri Sep 16, 2016 5:55 pm

well, they both seem to function, as it looks, in OC v.2.2:
---
Hide grid/list buttons
http://www.opencart.com/index.php?route ... n_id=23218
--
Grid View by Default
http://www.opencart.com/index.php?route ... n_id=19648
---
Good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

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

Post by X-Bumble » Fri Sep 16, 2016 9:39 pm

Well no matter as if anyone does what I suggested above it will do the trick. May save someone a few dollars as well :)

Thanks for all your help by the way.

New member

Posts

Joined
Thu Feb 12, 2015 7:53 pm

Post by IP_CAM » Fri Sep 16, 2016 10:13 pm

Well done! I just checked in my OC-2 Theme, driven by my OC v.1.5.6.5 Engine, and compared your Solution:

Code: Select all

<div class="product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12">
with the one, I have created for this:

Code: Select all

<div class="product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12">
so, I have only 3 Product per Row, because I feel, it looks better, if one displays the Side Panel Category Box.
Just to let you know ! :D

Good Luck !
Ernie

To be seen momentarely here:
http://www.gratis-anzeiger.com/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


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 37 guests