Post by Eva30 » Mon Sep 12, 2011 12:32 am

nice one!
thank you!

User avatar
New member

Posts

Joined
Fri Sep 09, 2011 4:17 pm

Post by zaid.bn » Tue Sep 13, 2011 12:27 am

if you want to remove product count from subcategories, search for:

Code: Select all

'name'        => $child['name'] . ' (' . $product_total . ')',
and change it to:

Code: Select all

'name'        => $child['name'],
and if you want to remove product count from parent categories, search for:

Code: Select all

'name'        => $category['name'] . ' (' . $product_total . ')',
and change it to:

Code: Select all

'name'        => $category['name'],

Newbie

Posts

Joined
Mon Sep 12, 2011 11:42 pm

Post by Superior1 » Sat Nov 26, 2011 11:00 pm

Thanks to everyone who added explanations here, massive help!

New member

Posts

Joined
Sat Aug 27, 2011 5:39 pm

Post by trader » Thu Dec 29, 2011 2:27 am

Solved my problem, Thanks for taking the time to explain.

New member

Posts

Joined
Fri Apr 29, 2011 4:12 am

Post by n_ugget » Wed Jan 18, 2012 10:44 am

Thank you so much for the information. Worked like a charm.

Newbie

Posts

Joined
Sun Jul 17, 2011 4:49 am

Post by altxpress » Mon Feb 06, 2012 3:19 pm

thank you again
solved multiple times.

Newbie

Posts

Joined
Wed Oct 19, 2011 6:16 am

Post by Meshach » Thu May 24, 2012 5:20 am

Thanks guys for the quick solution.

User avatar
Newbie

Posts

Joined
Thu May 24, 2012 5:20 am


Post by elitekevin » Sat Jul 28, 2012 9:46 pm

hi

i have installed this mod webvet_remove_category_count which this form link is listed on the doc part of the extension i have installed this and it works by removing the product count from the storefront but at the same time now i cant see the product and category count in my admin dash board anymore can someone please please help, thanks...

Newbie

Posts

Joined
Mon Jan 09, 2012 11:07 am

Post by ZenDumper » Wed Jun 12, 2013 9:59 am

For anyone searching for this now: This is a feature built into Open Cart version 1.5.5.1 (and probably some previous versions). To change the option go to Admin > System > Settings > <Your Store> > Edit > Option > Category Product Count

All the best

Simon

Newbie

Posts

Joined
Thu Nov 15, 2012 8:55 am

Post by rph » Thu Jun 13, 2013 12:44 am

You'll want to use the following extension to receive a speed boost from disabling counts in 1.5.5.x:

http://www.opencart.com/index.php?route ... n_id=10999

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by tickledpink » Tue Aug 06, 2013 3:03 am

In Version 1.5.5.1
Go to catalog, controller, module, category.php

Find around line 53

Code: Select all

'name'        => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
Replace with

Code: Select all

'name'        => $child['name'],
On same page around line 60 find

Code: Select all

'name'        => $category['name'] . ($this->config->get('config_product_count') ? ' (' . $total . ')' : ''),
Replace with

Code: Select all

'name'        => $category['name'],

Newbie

Posts

Joined
Thu Jul 21, 2011 4:34 am

Post by rph » Tue Aug 06, 2013 9:30 am

I'm not sure what the point of the above code change is.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by deecomj » Fri Jul 10, 2015 1:52 am

How we do this in Opencart 2.X
thanks

Newbie

Posts

Joined
Fri Jul 10, 2015 1:19 am

Post by Drachyr » Fri Apr 28, 2017 4:37 am

in 2017, this info is still good! thanks guys!

Newbie

Posts

Joined
Sat Aug 29, 2015 4:17 am

Post by cyclops12 » Mon May 01, 2017 2:47 am

In 2.3.0.2 you can do this in admin in system/settings edit your store then click on the Option tab

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 137 guests