osCmax v2.5 User Manual
Results 1 to 5 of 5

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

      
  1. #1
    New Member
    Join Date
    Nov 2005
    Posts
    14
    Rep Power
    0


    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

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    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

  3. #3
    New Member
    Join Date
    Nov 2005
    Posts
    14
    Rep Power
    0


    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!

  4. #4
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    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

  5. #5
    New Member
    Join Date
    Nov 2005
    Posts
    14
    Rep Power
    0


    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

Similar Threads

  1. billing_address_format_id is empty
    By coeus in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 09-06-2005, 01:50 PM
  2. Hiding the price untill registered
    By shehper in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 02-16-2005, 07:24 AM
  3. Tried to Log in but went to a empty page
    By chihchiac in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 08-24-2004, 02:42 PM
  4. Help with hiding "In Cart" button.....!!!!
    By dojen13 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-08-2003, 05:43 AM
  5. Shopping cart won't empty
    By judoka in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 07-14-2003, 01:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •