I'm having trouble setting my default view in categories from list to grid.
I've tried a few things from other threads on the forum including downloading the vqmod and adding this mod uksb_grid_view_default.xml but it hasn't changed the view, despite clearing cookies.
I'm using the default template of Opencart 1.5.2.1 - so do I need to make changes to anything in my admin area to make the default grid setting apply?
This is my store: http://www.tutuswingsandprettythings.com
Any help is greatly appreciated!
I've tried a few things from other threads on the forum including downloading the vqmod and adding this mod uksb_grid_view_default.xml but it hasn't changed the view, despite clearing cookies.
I'm using the default template of Opencart 1.5.2.1 - so do I need to make changes to anything in my admin area to make the default grid setting apply?
This is my store: http://www.tutuswingsandprettythings.com
Any help is greatly appreciated!
Hello Casiefa,
Try to locate this piece of code, generally at the bottom of the tpl category list file:
You should just change de part: display('list') to display('grid')
Like this:
Best regards,
Try to locate this piece of code, generally at the bottom of the tpl category list file:
Code: Select all
view = $.cookie('display');
if (view) {
display(view);
} else {
display('list');
}
Like this:
Code: Select all
view = $.cookie('display');
if (view) {
display(view);
} else {
display('grid');
}
Clear your browser cookies after you done that and you should see the effect. New users to your website will see view as default 'grid'. Else if you want permanent grid layout, add this:
Code: Select all
<script type="text/javascript">$(document).ready(function() { if(typeof display == 'function') { display('grid'); } });</script>
MarketInSG wrote:Clear your browser cookies after you done that and you should see the effect. New users to your website will see view as default 'grid'. Else if you want permanent grid layout, add this:
Code: Select all
<script type="text/javascript">$(document).ready(function() { if(typeof display == 'function') { display('grid'); } });</script>
Not useful comments can be keptjariusj77 wrote:Hopefully somebody else can give you a better answer![img]Hopefully%20somebody%20else%20can%20give%20you%20a%20better%20answer[/img]
I had the same prob, wanting to have Grid by default.
I went with what dbassa instructions and it worked fine for me.
Just changed display('list'); to display('grid'); in the category TPL file, cleared my cache and presto!
All good here.
Many thanks for that tip, dbassa.
Cheers!
I went with what dbassa instructions and it worked fine for me.
Just changed display('list'); to display('grid'); in the category TPL file, cleared my cache and presto!
All good here.
Many thanks for that tip, dbassa.
Cheers!
======================================
"OpenCart . . . What a Catch! It's Marvelous!"
=======================================
hi
I've changed the default view to grid but what happens now is that it goes back to list randomly - only sometimes, on some machines.
Could someone please point me in the right direction?
This is what i've done
f (view) {
display(view);
} else {
display('list'); ---> change to grid
}
I've changed the default view to grid but what happens now is that it goes back to list randomly - only sometimes, on some machines.
Could someone please point me in the right direction?
This is what i've done
f (view) {
display(view);
} else {
display('list'); ---> change to grid
}
dbassa wrote:Hello Casiefa,
Try to locate this piece of code, generally at the bottom of the tpl category list file:
You should just change de part: display('list') to display('grid')Code: Select all
view = $.cookie('display'); if (view) { display(view); } else { display('list'); }
Like this:
Best regards,Code: Select all
view = $.cookie('display'); if (view) { display(view); } else { display('grid'); }
Just wanted to say you star, it worked perfectly for me too! However after clicking around my website I decided I preferred the list view instead, but awesome it worked straight away so thought I would comment
@dbassa Thanks this simple change was just what I was looking for.
Life is for the taking. It's everything else you need to pay for.
Anne Makes Lovely Candles
New member
Who is online
Users browsing this forum: No registered users and 3 guests