Post by matteoraggi » Fri Jan 18, 2013 3:24 pm

I can find many esxtensions to hide the number of categories, but I can't find the way to show the number of categories on the default vertical menu of oc 1.5.4.1. Is there a vqmod extensio or some tips about it?

http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish


Active Member

Posts

Joined
Fri Apr 10, 2009 8:16 pm

Post by trinkaljuneja » Fri Jan 18, 2013 5:35 pm

find this in \catalog\controller\module\category.tpl

Code: Select all

		$this->data['categories'][] = array(

edit 'name' line to this

Code: Select all

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

find this

Code: Select all

$children_data[] = array(
edit 'name' line to this

Code: Select all

'name'        => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
to show category count (if enable from admin )...

A coder by Hobby and Developer by Profession

Images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6943
Description and images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6978

http://codertj.com


New member

Posts

Joined
Tue Aug 23, 2011 9:08 pm

Post by matteoraggi » Fri Jan 18, 2013 5:57 pm

Thanks! and how to transform that changes into a vqmod?

http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish


Active Member

Posts

Joined
Fri Apr 10, 2009 8:16 pm
Who is online

Users browsing this forum: No registered users and 1 guest