Opencart Grid View by Default

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 :)

, , ,

4 Responses to Opencart Grid View by Default

  1. Edgar January 7, 2012 at 12:45 am #

    Good job, simple and efficient, thank you. Works fantastic.

  2. ThemeGrrl January 24, 2012 at 3:08 am #

    Great solution, thank you!

  3. Johnny January 25, 2012 at 4:10 am #

    Hi,

    While Googling also found this regarding the above:
    http://forum.opencart.com/viewtopic.php?t=33075

  4. Dante February 9, 2012 at 1:53 pm #

    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

Leave a Reply