sheringham Posted October 16, 2005 Share Posted October 16, 2005 ...but I don't want the numbers in brackets that tells me how many products there are in each category. I've tried going to 'Configuration' > 'My Store' > 'Show Category Counts' = 'False' but this hasn't worked. Is there some code in one of the includes files I can strip out to get rid of these bracketed numbers? Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 16, 2005 Share Posted October 16, 2005 While I am not an expert on this, it looks like you could delete the following from categories3.php to stop the display of product counts: if (SHOW_COUNTS) { $products_in_category = tep_count_products_in_category($categories['categories_id']); if ($products_in_category > 0) { $categories_string3 .= ' (' . $products_in_category . ')'; } } Be sure to make a backup copy of the file before trying this. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
241 Posted October 16, 2005 Share Posted October 16, 2005 yep graphicguy has it however I would initially only comment out the code /* if (SHOW_COUNTS) { $products_in_category = tep_count_products_in_category($categories['categories_id']); if ($products_in_category > 0) { $categories_string3 .= ' (' . $products_in_category . ')'; } } */ although the code should have read if (SHOW_COUNTS == 'true') { which would then allow you to use the setting in admin set to false No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 16, 2005 Share Posted October 16, 2005 although the code should have read if (SHOW_COUNTS == 'true') { which would then allow you to use the setting in admin set to false Good point. I didn't look that close at the code's syntax, I just looked up categories3.php in another thread and looked for the code that was displaying the quantities. But fixing the code as Steve indicated is definintely a better solution. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.