osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

I want to show products in category listing

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-27-2005, 09:23 AM
Lurker
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
misbell
Default I want to show products in category listing

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-27-2005, 07:33 PM
Lurker
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
misbell
Default RE: I want to show products in category listing

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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax