Categories

Featured templates

OpenCart 1.5.x. How to change default products listing view

Aaron Liberman June 10, 2013
Rating: 3.7/5. From 3 votes.
Please wait...

This tutorial will show you how to change default products listing view in OpenCart template.

OpenCart. How to change default products listing view

1. Connect to your domain via FTP (contact your hosting provider if you do not know how to do it).

2. Navigate to /catalog/view/theme/themeXXX/template/product folder. Where themeXXX is your theme name.

3. Edit category.tpl file using any code editor.

4. Search for the following code block:

if (view) {
	display(view);
} else {
	display('list');
}

display(‘list’); means that default product listing is set to List.

5. Change that code block to:

if (view) {
	display(view);
} else {
	display('grid');
}

to set Grid as default product listing mode.

6. Clean cookies and cache in your web browser. Otherwise you won’t see the changes on your site.

Feel free to check the detailed video tutorial below:

OpenCart. How to change default products listing view

Top OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged change, default, layout, listing, opencart, products, view. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket