Page 1 of 1

Default to grid view? [SOLVED]

Posted: Tue Apr 09, 2013 11:49 pm
by YarniaPDX
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!

Re: Default to grid view?

Posted: Wed Apr 10, 2013 7:35 pm
by mbeerden
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.

Re: Default to grid view?

Posted: Thu Apr 11, 2013 8:38 pm
by JIMSLITA