Contributions
Display Products AND Categories
By default osCommerce only displays the products contained in a category if the category happens to contain both products and other subcategories. Since users browsing the web site might not notice that the category contains subcategories if they are listed only in the categories info box I wanted to display both the subcategories and the products contained in the category in the main window. This modification allows you to do that with simple changes to only two files.
Expand All / Collapse All
One part of Step 2 was missing being wrapped in <?php ?> tags. Also added instructions for if you have Category Discriptions MS2 v1.95+ installed.
Scott
Updated code, removed extra code, added an easier way to have category name headers...
Scott
By default osCommerce only displays the products contained in a category if the category happens to contain both products and other subcategories. Since users browsing the web site might not notice that the category contains subcategories if they are listed only in the categories info box I wanted to display both the subcategories and the products contained in the category in the main window. This modification allows you to do that with simple changes to only two files.
While updating to RC2a I discovered some errors in the instructions so I have updated them. This version also changes the HTML page title to reflect each category and/or manufacturer that is being browsed and displays the category and/or manufacturer being browsed at the top of the product listing.
By default osCommerce only displays the products contained in a category if the category happens to contain both products and other subcategories. Since users browsing the web site might not notice that the category contains subcategories if they are listed only in the categories info box I wanted to display both the subcategories and the products contained in the category in the main window. This modification allows you to do that with simple changes to only two files.
Note: Contributions are used at own risk.