osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Help with Main Category Display

This is a discussion on Help with Main Category Display within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm looking for a contribution or help that will change the way the index page displays when clicking into a ...


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 11-30-2005, 01:10 PM
Lurker
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
azimpact
Default Help with Main Category Display

I'm looking for a contribution or help that will change the way the index page displays when clicking into a main category that has subs under it. Right now, by default it shows a picture and discription of the sub and then you click into the sub.

I would like it show products from the subs much like it displays when you actually click into the sub category.
I'm trying to find the contribution that did this:
http://www.vedicbooks.net/masters-c-57.html

I've found where I need to change the code to make it do that, but I can't seem to be able to put the together the correct syntax to make it work.

This is the code on the index page that displays the default layout for cats and subs when you click a main category:
Code:
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
    }
 
    $number_of_categories = tep_db_num_rows($categories_query);

    $rows = 0;
    while ($categories = tep_db_fetch_array($categories_query)) {
      $rows++;
      $cPath_new = tep_get_path($categories['categories_id']);
      $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
echo "     <a href=\"" . tep_href_link(FILENAME_CATEGORIES_INFO, 'name=' .str_replace("/", "/", rawurlencode($this_categories_name)). "/" . "cPath/" . $categories_id . $this_categories_id . (($this_language_code == DEFAULT_LANGUAGE) ? '' : ('&language=' . $this_language_code)), 'NONSSL', false) . "\">" . $this_categories_name . "</a>\n";
					}
					echo "   </td>\n";
				}
			    echo " </tr>\n";
      }
    }
Any help in the right direction would be much appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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
Display More New Products on Main Page HipHopServers osCMax v2 Features Discussion 4 12-12-2005 09:28 PM
Display Category name on Default_specials spurs20 osCMax v2 Customization/Mods 0 09-20-2005 10:07 AM
Bestseller according to main category selected Anonymous osCMax v1.7 Discussion 0 06-16-2004 06:37 AM
Category and Subcategory Display Problem nrvtoday osCommerce 2.2 Installation Help 2 10-11-2003 05:50 PM
Category not showing on Main Page DebbieG osCMax v1.7 Discussion 2 10-05-2003 05:55 PM


All times are GMT -8. The time now is 05:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax