Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing "# of items" from category listing


Guest

Recommended Posts

I know this should be an easy fix, but can anyone tell me where I need to go in order to remove the actual "number of products" that are in each category from the category listings?

 

In the categories infobox, I only want the name of the category to show, and not the # of products within the cateogry.

Link to comment
Share on other sites

Could you tell me what to do please because I want to do this as well. I found the file, it must be catalog/includes/boxes/categories.php but I don't know what to remove.

 

Or is there something easy in admin that I missed?

 

New to programming - please help.

Link to comment
Share on other sites

*two minutes later*

 

whoops I found it also :oops:

 

If anyone else needs to do this, it's in admin -> my store -> set Show Category Counts to false

Link to comment
Share on other sites

  • 2 weeks later...

Thats fine if you want to remove the whole thing but if my menu looks like....

Cables & Tools-> (122)

Cameras->

Case Modding->

Cases->

CD / DVD->

Communications->

 

and I want it to look like...

Cables & Tools (122)

Cameras

Case Modding

Cases

CD / DVD

Communications

 

what do i do to remove the "->" ????

Link to comment
Share on other sites

I'm running OSC v1.2 and Show Category Counts is not listed in my Admin>My Store. So I dug a little deeper and found that yes to change the code you must goto categories.php only to find that the code needing to be changed actually resides in the application_top file. Around line 148 change the

define('SHOW_COUNTS', 'true'); // show category count: true=Yes False=No

 define('USE_RECURSIVE_COUNT', 'true'); // recursive count: true=Yes False=No

 

to

define('SHOW_COUNTS', 'false'); // show category count: true=Yes False=No

 define('USE_RECURSIVE_COUNT', 'false'); // recursive count: true=Yes False=No

 

and that achieves the same result as the admin page. Still looking for the "->" so it can be removed...any suggestions would be greatly appreciated. Thanks in advance.

Link to comment
Share on other sites

I have done this now!

 

I found the andswer in the file....

 

includesboxescategories.php file

 

find the line

   if (tep_has_category_subcategories($counter)) {

     $categories_string .= '->';

 

comment out as below...

   if (tep_has_category_subcategories($counter)) {

//      $categories_string .= '->';

 

This will stop the "->" from appearing!

 

so you get Category Item (###)

 

Perfect!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...