Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modify categories


web-connected

Recommended Posts

Posted

My client would like to turn off the number of products in each category feature. For example:

 

Default OS Commerce : Great Gifts-> (46)

Desired Setting: Great Gifts

 

Can someone please provide some guidance, I have searched for hours and cannot find an answer. Any help is much appreciated.

 

Thanks in advance,

John

Posted

I am using Version 2.1 of OSCommerce and this option is not available under Configuration > My Store. I had even upgraded the DB to version 2.2 and still was unable to make it work. Any other options or suggestions?

 

Thanks,

John

Posted

For those of you who may be running older carts, such as myself, here is how to get rid of the category counts and the arrows. Thanks for anyone who helped.

 

To turn off the categories, please do the following:

 

Open your includes/application_top.php and look for the following around line 160:

 

// Categories Box: recursive products count

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

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

 

Just "comment out" (//) the two defines and you'll be fine.

 

After doing the above, you will notice that you still have the arrows. To turn off the arrows, please perform the following:

 

Open the File:.../includes/boxes/categories.php

 

Line: 43

$categories_string .= '->';

 

delete ->

 

I was using the wrong search strings, but thanks for everyone's input. This is by far the best community on the net.

 

Cheers,

John

  • 2 months later...

Archived

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

×
×
  • Create New...