Hi! I want to remove the category count from the category column. Is there a way to remove this in the admin or do I have to do something with the code?
Last edited by mylasbags on Sat Sep 10, 2011 2:54 am, edited 1 time in total.
You will have to alter the core code, this has been asked in another thread as well and we are waiting for for some helpfull replies.
Live Long and Prosper!
Degsey :-]
Visit us at :
http://www.Supreme-Ink.com
Ok I have solved it.
See here on my development website http://www.laptopmadness.com
How to do it?
Edit this file /catalog/controller/module/catergory.php
Look for
and replace with
This is in 2 places and each must be replaced.
See here on my development website http://www.laptopmadness.com
How to do it?
Edit this file /catalog/controller/module/catergory.php
Look for
Code: Select all
'name' => $child['name'] . ' (' . $product_total . ')',
Code: Select all
'name' => $category['name'],
Live Long and Prosper!
Degsey :-]
Visit us at :
http://www.Supreme-Ink.com
That is the file and in V1.5xx it is repeated twice in the code.
This hack only takes out the side catergory count, I am working on the sub cats and the home page menu bar but time is very short at present.
Try just the one line that you see keep a copy of the old one and see what happens!
This hack only takes out the side catergory count, I am working on the sub cats and the home page menu bar but time is very short at present.
Try just the one line that you see keep a copy of the old one and see what happens!
Live Long and Prosper!
Degsey :-]
Visit us at :
http://www.Supreme-Ink.com
/catalog/controller/module/category.phpmylasbags wrote:My file @ /catalog/controller/module/category.php only shows that line 1 time, should I edit another category.php file?
1.Search
Code: Select all
'name' => $child['name'] . ' (' . $product_total . ')',
Code: Select all
'name' => $child['name'],
Code: Select all
'name' => $category['name'] . ' (' . $product_total . ')',
Code: Select all
'name' => $category['name'],
Remove Sub category count:
/catalog/controller/product/category.php
Find
Replace with
/catalog/controller/product/category.php
Find
Code: Select all
'name' => $result['name'] . ' (' . $product_total . ')',
Code: Select all
'name' => $result['name'],
Could I just ask something here:
I seem to remember that when playing with 1.4x it was possible to leave core files untouched and over-ride them with duplicated/modified files based on a new template.
I too want to remove category counts but I'd like to do it a 'nice' way.
If someone could advise I'd appreciate it.
I seem to remember that when playing with 1.4x it was possible to leave core files untouched and over-ride them with duplicated/modified files based on a new template.
I too want to remove category counts but I'd like to do it a 'nice' way.
If someone could advise I'd appreciate it.
For the top bar go to
Look for:
And Replace with:
Code: Select all
/catalog/controller/common/header.php
Code: Select all
$product_total = $this->model_catalog_product->getTotalProducts($data);
$children_data[] = array(
'name' => $child['name'] . ' (' . $product_total . ')',
Code: Select all
$children_data[] = array(
'name' => $child['name'],
Thanks AD that just about raps up the whole thing!
Live Long and Prosper!
Degsey :-]
Visit us at :
http://www.Supreme-Ink.com
i've done this and it works, but now the header drop down list is some reason not as wide as it should be. anyone know why this might change the size? it's no longer the length of the parent category width
my opencart carpet cleaning woking guildford and Office Cleaning Services in Guildford
On an update there is a VQMod that does this for you and does not need any code alteration, even if you have partly taken out the code it will take out all product counts, even in subcats.
Live Long and Prosper!
Degsey :-]
Visit us at :
http://www.Supreme-Ink.com
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 96 guests