This is a discussion on I want to show products in category listing within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I would like to show products in the category listing rather than categories of products or sub-categories. So, when ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I would like to show products in the category listing rather than categories of products or sub-categories. So, when I click on a product in the category listing, I would like it to take me to the product page, and not the page that provides a listing of products. |
|
#2
| |||
| |||
| I'm new to osCommerce, and I realize the following is a hack, but I think it works. I realize that I will not be able to have sub-categories, which is what I want. Anyone see any implications elsewhere? I made the following changes/additions to categories.php:function tep_show_category to change the href for the categories. $cat_to_prod_query = tep_db_query("select products_id as prod_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$counter . "'"); $cat_prod = tep_db_fetch_array($cat_to_prod_query); $products_id_new = '&products_id=' . $cat_prod['prod_id']; $cPath_new .= $products_id_new; |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to change number of columns inside category listing | shirster | osCMax v2 Customization/Mods | 1 | 05-17-2006 02:45 AM |
| new products-link show all products, not 10 as I configure.. | mikkvais | osCommerce 2.2 Discussion | 0 | 08-23-2005 01:31 PM |
| I would like to show just 1 category in the menu at a time | thinkweb | osCommerce 2.2 Modification Help | 0 | 01-27-2005 10:00 AM |
| Modyfying product listing and new products listing | pavlo | osCommerce 2.2 Modification Help | 0 | 11-22-2004 08:27 AM |
| Help help help = Category listing output | Anonymous | osCommerce 2.2 Modification Help | 5 | 11-25-2002 10:27 PM |