Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category counts


jhande

Recommended Posts

I turned off (false) "Show Category Counts" in the Admin Panel > My Store.

 

But in my browser (IE7) they are still showing. :blink:

 

I checked the configuration table in the database and it shows it as being set to false.

I deleted my browsers temporary internet files, history and cookies. Shut it down and restarted, but the counts are still there.

 

Did I miss something somewhere?

Did I run into yet another glitch in my setup?

 

I was able to turn them off long ago. Guess I should have left them off. <_<

 

Any ideas or help would be greatly appreciated! ;)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

You could comment out the code that produces them in /catalog/includes/boxes/categories.php

 

//	if (SHOW_COUNTS == 'true') {
//	  $products_in_category = tep_count_products_in_category($counter);
//	  if ($products_in_category > 0) {
//		$categories_string .= ' (' . $products_in_category . ')';
//	  }
//	}

If all else fails.....

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I turned off (false) "Show Category Counts" in the Admin Panel > My Store.

 

But in my browser (IE7) they are still showing. :blink:

 

I checked the configuration table in the database and it shows it as being set to false.

I deleted my browsers temporary internet files, history and cookies. Shut it down and restarted, but the counts are still there.

 

Did I miss something somewhere?

Did I run into yet another glitch in my setup?

 

I was able to turn them off long ago. Guess I should have left them off. <_<

 

Any ideas or help would be greatly appreciated! ;)

 

You didn't by chance install a contribution that caches your Category info did you? For instance, CSS Menu (http://addons.oscommerce.com/info/4589) the most recent mod caches the Category info - seems to me you ahve to blow away that cache file categories.css.php (which is in \catalog\cache dir) anytime you add/change categories/products to get the right counts.

Link to comment
Share on other sites

You could comment out the code that produces them in /catalog/includes/boxes/categories.php

 

//	if (SHOW_COUNTS == 'true') {<BR>//	  $products_in_category = tep_count_products_in_category($counter);<BR>//	  if ($products_in_category > 0) {<BR>//		$categories_string .= ' (' . $products_in_category . ')';<BR>//	  }<BR>//	}

If all else fails.....

:blush:

 

Thanks Jim! I think that is what I will have to do. I'm also going to run through - "A Store Speed Optimization..." by Chemo. ;)

 

 

You didn't by chance install a contribution that caches your Category info did you? For instance, CSS Menu (http://addons.oscommerce.com/info/4589) the most recent mod caches the Category info - seems to me you ahve to blow away that cache file categories.css.php (which is in \catalog\cache dir) anytime you add/change categories/products to get the right counts.

 

Hey Chris, Thanks for the tip regarding CSS Menu. No I haven't yet installed any such mods.

 

What has me really puzzled is after my last modification I was able to turn off the category counts. But suddenly it no longer functions. So I have no clue as to what could have broken it, nothing to back-track from. :huh:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

What about the standard cache in osc. Did you turn that on?

It's in admin then configuration then cache.

You can reset them under tools.

Link to comment
Share on other sites

What about the standard cache in osc. Did you turn that on?

It's in admin then configuration then cache.

You can reset them under tools.

 

Thank you Brian!

 

The cache was set to true, I don't remember ever touching that, but who knows.

Now with it turned off (false) the counts are gone, GREAT.

 

Can I safely run the shop with the cache off?

Will it have a negative effect on anything?

 

:thumbsup:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

You can run it with it off. It could make things a little slower though.

Try turning it back on then going to the tools section in admin then cache control. Click the little triangle on the far right of Categories Box. That should reset the cache getting rid of the cache with the category counts.

Link to comment
Share on other sites

Thank you so much Brian!

 

That solved my problem. :thumbsup:

 

You are the greatest :D

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...