Hi all,
I was looking to change the view to a default of grid view, i was advised to change the tpls in the catalog template files, from:
if (view) {
display(view);
} else {
display('list');
}
Replace that with
if (view) {
display(view);
} else {
display('grid');
}
But this doesn't seem to have worked for us on our Manufacturer category pages, possibly because there was no instance of the above code in the manufacturer tpl's. Any help would be extremely welcome,
Luke
Why don't use an extension for that?
http://www.opencart.com/index.php?route ... earch=grid
http://www.opencart.com/index.php?route ... earch=grid
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
It has to be there in manufacturer_info.tpl
Do you use default template?
Code: Select all
view = $.totalStorage('display');
if (view) {
display(view);
} else {
display('list');
}
//--></script>
<?php echo $footer; ?>
Actually, we seem to have changed them now, I must have mis-read. Could someone see if our site now defaults on grid view?
www.designer-man.co.uk
www.designer-man.co.uk
Who is online
Users browsing this forum: No registered users and 345 guests