Post by YarniaPDX » Tue Apr 09, 2013 11:49 pm

Is there anywhere I can tweak the code in my shop to make the product listings default to grid view? I was able to do this in my older version of Opencart before I upgraded, but now it's back to defaulting to list view.

I have tried a handful of extensions (Vqmod) that claim to do this, but none of them seem to have any effect on my shop and I'm hoping there is simply somewhere in the code that I can change this setting instead?

Thanks so much!
Last edited by YarniaPDX on Wed Aug 28, 2013 12:32 am, edited 1 time in total.

Active Member

Posts

Joined
Sat Sep 04, 2010 7:10 am

Post by mbeerden » Wed Apr 10, 2013 7:35 pm

You can adjust the template file:

in catalog/view/theme/default/template/product/category.tpl

Search at the bottom:

Code: Select all

    if (view) {
       display(view);
    } else {
       display('grid');
    }
choose for display('grid'); or display('list');

You want this default display elsewhere? Search for the part of code i've shown you and change list for grid.

New member

Posts

Joined
Tue Nov 03, 2009 5:06 am

Post by JIMSLITA » Thu Apr 11, 2013 8:38 pm


OC v 1.5.4 with alot of tweaks,exts & mods.


User avatar
New member

Posts

Joined
Fri Feb 08, 2013 3:49 pm
Who is online

Users browsing this forum: No registered users and 150 guests