chrometweaks.org

Web developers, what's the best iPage hosting service?

Click Here To View All Answers...


Question I have... Web developers, what's the best iPage hosting service? Thanks for any answer or 2. Another question I got... The configuration in the admin are is set to "false" for show category counts but it doesnt do anything. Where is this being overriden? I am guessing categories.php but where and what do I do?..

Comments (62)

Good question... I dunno what is the answer to your question. I'll do some poking around and get back to you if I find an good answer. You should email the people at iPage as they probably could help you..

Comment #1

Thats whats extremely weird about this. The categories file is modified but here is that code you are talkinga bout:.

If (SHOW_COUNTS =='false') {.

     $products_in_category = tep_count_products_in_category($categories['categories_id']);.

     if ($products_in_category > 0) {.

       $categories_string .= ' ('$products_in_category')';.

     }.

   }.

I just dont understand it!!!..

Comment #2

Strange....

Don't worry too much about the ghosts in the machine - change the code back and it should work...

Comment #3

I dont think I can go back to stock! I have stuff that I want in it. Im sure theres a way to fix it w/o going back to stock...

Comment #4

I tried changine that 1 line of code but it didnt work. It put the #999 for the category count for each one of them for some reason!!..

Comment #5

I just got it working, I cant believe it!!.

I took out this line of code:.

$products_in_category = tep_count_products_in_category($categories['categories_id']);..

Comment #6

Check the configuration table with phpmyadmin and see if you have any duplicates...

Comment #7

The configuration in the admin are is set to "false" for show category counts but it doesnt do anything. Where is this being overriden? I am guessing categories.php but where and what do I do?..

Comment #8

Works on my installation... have you made changes?.

The file that displays the counts is includes/boxes/categories.php - code around line 47 should look as follows....

If (SHOW_COUNTS == 'true') {.

     $products_in_category = tep_count_products_in_category($counter);.

     if ($products_in_category > 0) {.

       $categories_string .= ' ('$products_in_category')';.

     }.

   }..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.