{"id":1545,"date":"2010-11-15T10:24:57","date_gmt":"2010-11-15T10:24:57","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/eoc\/oscommerce\/article11.html"},"modified":"2020-01-31T03:56:51","modified_gmt":"2020-01-31T08:56:51","slug":"how-maintain-product-listing-module","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-maintain-product-listing-module.html","title":{"rendered":"How to maintain product listing module"},"content":{"rendered":"<p>This tutorial shows how to maintain product listing module in osCommerce store. <\/p>\r\n<p>For an example we&#8217;ll use New Products module<\/p>\r\n\r\n<h4>osCommerce 2.2. Change number of columns in new products listing<\/h4>\r\n<ol>\r\n  <li>Open your osCommerce store installation directory. <\/li>\r\n  <li>Go to <strong>includes\/modules<\/strong> directory<\/li>\r\n  <li>Open <strong>new_products.php<\/strong> file. <\/li>\r\n  <li>Locate the following:<\/li>\r\n<\/ol>\r\n<pre class=\"brush:php\">\r\n$col ++; \r\nif ($col &gt; 2) { \r\n&nbsp;&nbsp; $col = 0; \r\n&nbsp;&nbsp; $row ++; \r\n} \r\n?&gt; \r\n<\/pre>\r\n\r\n<p>Columns counter starts from 0 so in order to display 4 columns (for example) you need to change the code as follows:<\/p>\r\n\r\n<pre class=\"brush:php\">\r\n$col ++; \r\nif ($col &gt; 3) { \r\n&nbsp;&nbsp; $col = 0; \r\n&nbsp;&nbsp; $row ++; \r\n} \r\n?&gt; \r\n<\/pre>\r\n\r\n<h4>osCommerce 2.3. Change number of columns in new products listing<\/h4>\r\n<ol>\r\n  <li>Open osCommerce administration tool <\/li>\r\n  <li>Go to<strong> Settings &gt;   New Products Module<\/strong><\/li>\r\n  <li>Set the desired value for   <strong>New Products Module To List Per Row<\/strong><\/li>\r\n<\/ol>\r\n\r\nHow to maintain product listing module","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in <a href=\"https:\/\/www.templatemonster.com\/help\/ru\/wp-json\/wp\/v2\/posts\/1545\/\">Russian<\/a> and <a href=\"https:\/\/www.templatemonster.com\/help\/es\/wp-json\/wp\/v2\/posts\/1545\/\">Espa\u00f1ol<\/a>.<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[719,276,731],"tags":[538],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1545"}],"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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1545"}],"version-history":[{"count":4,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1545\/revisions"}],"predecessor-version":[{"id":86050,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1545\/revisions\/86050"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}