Jump to content

stevea24

Members
  • Content count

    18
  • Joined

  • Last visited


Reputation Activity

  1. Like
    stevea24 got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@ShaGGy Anyone know how to hide empty categories?
     
    Don't know if this will help but I changed line 49 from:
    while ($categories = tep_db_fetch_array($categories_query)) {
    $list[] = $categories;
    }
     
    to
     
    while ($categories = tep_db_fetch_array($categories_query))
    { $products_in_category = tep_count_products_in_category($categories['categories_id']); // DISABLE CATEGORY WITH NO PRODUCT
    if ($products_in_category > 0) $list[] = $categories;
    }
     
    and it seems to work.
×