osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

i really need help hiding empty categories

This is a discussion on i really need help hiding empty categories within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; my store have alot of empty subcategories, i dont want to delete them because they have inactive products inside which ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-09-2006, 11:52 AM
New Member
 
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
technoboy
Default i really need help hiding empty categories

my store have alot of empty subcategories, i dont want to delete them because they have inactive products inside which will be activated and inactivated from time to time.

i found this contrib

http://www.oscommerce.com/community/...arch,no+catego

but i was lost on the part where this contribution configures index.php
I couldnt find the codes anywhere

it says on the instruction

Code:
//////////////////////////////////////
In your index pages that show the category and its subcategories
(index_nested.php for most)
Under
    while ($categories = tep_db_fetch_array($categories_query)) {
add
      if(tep_count_products_in_category($categories['categories_id'])){

And add the closing } near the 'while' }
//////////////////////////////////////
Please help

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-13-2006, 01:48 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 461
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 7
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default RE: i really need help hiding empty categories

index_nested.tpl.php - it's in the content directory of your template (if not listed it will be in /templates/fallback/content/ )
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-14-2006, 08:38 AM
New Member
 
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
technoboy
Default Re: RE: i really need help hiding empty categories

Quote:
Originally Posted by met00
index_nested.tpl.php - it's in the content directory of your template (if not listed it will be in /templates/fallback/content/ )
oh thank you thank you so much met00! i was already doing like your smiley on your sig and you saved me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-15-2006, 03:04 PM
Member
 
Join Date: Jul 2005
Posts: 91
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
kenlyle
Default shut down the empty categories?

I am having trouble reading that file. Can I get another clue on how to shut down the empty categories, both in the index_nested page and the Categories box?

Thanks,
K
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-17-2006, 10:37 AM
New Member
 
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
technoboy
Default Re: shut down the empty categories?

Quote:
Originally Posted by kenlyle
I am having trouble reading that file. Can I get another clue on how to shut down the empty categories, both in the index_nested page and the Categories box?

Thanks,
K
this is the only way to hide em as ive searched everywhere

it helped me hide from index page, unfortunately in category infobox the empty subcategories is invisible but theres still empty space in their respective place, both the default and dhtml modification is affected. so what i did was i hid all subcategory alltogether
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
billing_address_format_id is empty coeus osCommerce 2.2 Installation Help 0 09-06-2005 01:50 PM
Hiding the price untill registered shehper osCMax v1.7 General Mods Discussion 1 02-16-2005 07:24 AM
Tried to Log in but went to a empty page chihchiac osCMax v1.7 Discussion 0 08-24-2004 02:42 PM
Help with hiding "In Cart" button.....!!!! dojen13 osCommerce 2.2 Modification Help 0 08-08-2003 05:43 AM
Shopping cart won't empty judoka osCommerce 2.2 Modification Help 2 07-14-2003 01:07 PM


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


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