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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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' }
//////////////////////////////////////
Eric |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| Quote:
|
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| Quote:
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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |