Default Grid View Products/Categories – Opencart 2

  1. Find the category.tpl file inside your template/product/ folder.
  2. Add the following code to the bottom of the page just below  <?php echo $footer; ?>

    <script type=”text/javascript”>
    $(document).ready(function() { if(typeof display == ‘function’) { display(‘grid’); } });
    </script>

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *