Opencart Grid View by Default
This is a tutorial or how to guide to help you make OpenCart 1.5 display the grid view by Default.
This is really really simple and easy to do, and why there’s no option in the OpenCart Admin Area to specify this is beyond me, however.
Open > your themes folder > template > common > footer.tpl
And then before </body>
Add this code:
<script type="text/javascript">$(document).ready(function() { display('grid'); });</script>
And that’s it – you’re done!
Enjoy
13 comments:
Good job, simple and efficient, thank you. Works fantastic.
Great solution, thank you!
Hi,
While Googling also found this regarding the above:
http://forum.opencart.com/viewtopic.php?t=33075
in oc 1.5.1.3 find this code:
if (view) {
display(view);
} else {
display(‘list’);
}
at the bottom of the template of your interest, and change it to
if (view) {
display(view);
} else {
display(‘grid’);
}
i find that’s a better way to modify oc default view.
Bye bye
Thanks very much, my client always asking for changing the default view to grid, now it’s ok ,,, working fine…. Thanks
Works perfectly and much easier than some of the other methods I have seen! Thank you for sharing!
[...] จาก http://www.itsadam.co.uk/opencart-grid-view-by-default/ This entry was posted in Opencart. Bookmark the permalink. ← CR2 HTML Module โมดูลสำหรับใส่ HTML ใน Opencart [...]
Great fix, thanks
Can’t believe it was that easy to change, and that there isn’t an option in the admin panel for that..
Nick
Thanks, works great in 1.5.4.1. The other solutions I’ve found did nothing.
thx a lot for ur great solution, now i can change from List to Grid
Excellent work, Thanks
FanTasTic dearu Great Work ….. jeanius ahan
Thanks