How to remove list view or grid view from OpenCart
Having the ability to swap between a list view and grid view is pretty nice and makes a flexible accommodating user interface for the user. But personally I do not like the list view. You don’t really get much more information and it just makes you have to scroll more.
You need to edit all files that display list and grid view inside catalog>views>theme>YOUR THEME>product>files.tpl
<script>function display(view)...(whole bunch of code)....</script>
Next you need to add the grid class to the product div. Find the product-list div
Add class product-grid
<div class="product-list product-grid">
<div class="display"><b><?php echo $text_display; ?> </b> <?php echo $text_list; ?> <b>/</b> <a onclick="display('grid');"><?php echo $text_grid; ?> </a></div>
This method will also work with removing grid view in Opencart. You would just skip step 3, and not add the class product-grid. By default it is styled to list view.