{"id":29374,"date":"2013-06-10T11:54:04","date_gmt":"2013-06-10T15:54:04","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=29374"},"modified":"2016-02-18T08:21:20","modified_gmt":"2016-02-18T13:21:20","slug":"opencart-how-to-change-default-products-listing-view","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-how-to-change-default-products-listing-view.html","title":{"rendered":"OpenCart 1.5.x. How to change default products listing view"},"content":{"rendered":"<p><\/p>\r\n<p>This tutorial will show you how to change default products listing view in OpenCart template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=PS1546rEOXg?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart. How to change default products listing view<\/a><\/p>\r\n<p>1. Connect to your domain via FTP (contact your hosting provider if you do not know how to do it).<\/p>\r\n<p>2. Navigate to <strong>\/catalog\/view\/theme\/themeXXX\/template\/product<\/strong> folder. Where <strong>themeXXX<\/strong> is your theme name.<\/p>\r\n<p>3. Edit <strong>category.tpl<\/strong> file using any code editor.<\/p>\r\n<p>4. Search for the following code block:<\/p>\r\n<pre class=\"brush:php\">\r\nif (view) {\r\n\tdisplay(view);\r\n} else {\r\n\tdisplay('list');\r\n}\r\n\r\n<\/pre>\r\n<p><strong>display(&#8216;list&#8217;);<\/strong> means that default product listing is set to <strong>List<\/strong>.<\/p>\r\n<p>5. Change that code block to:<\/p>\r\n<pre class=\"brush:php\">\r\nif (view) {\r\n\tdisplay(view);\r\n} else {\r\n\tdisplay('grid');\r\n}\r\n<\/pre>\r\n<p>to set Grid as default product listing mode.<\/p>\r\n<p>6. Clean cookies and cache in your web browser. Otherwise you won&#8217;t see the changes on your site.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=PS1546rEOXg?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart. How to change default products listing view<\/a><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to change default products listing view in OpenCart template.<\/p>\n","protected":false},"author":38,"featured_media":29379,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1183,1323,482,696,1157,1305,847],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/29374"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=29374"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/29374\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/29379"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=29374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=29374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=29374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}