I basically just want to remove the little number that is next to the category in the menu bar so for example if there is one product in the category then it has (1) next to it.
I cant seem to find any settings in the control panel for it but then again i might just be blind.
Im using 1.5 btw.
thanks for any help in advance.
Reason: Use [version] TAG in subject!
If I am right, you just want your customers to see the categories in the dropdown menu without the quantities in brackets i.e. (2) ?tarik wrote:I basically just want to remove the little number that is next to the category in the menu bar so for example if there is one product in the category then it has (1) next to it.
I cant seem to find any settings in the control panel for it but then again i might just be blind.
Im using 1.5 btw.
thanks for any help in advance.
You can do this by altering one line of code in the catalog/controller/header.php file.
Find the following line of code (around line 200) . . .
Code: Select all
'name' => $child['name'] . ' (' . $product_total . ')',
Code: Select all
'name' => $child['name'],// . ' (' . $product_total . ')',
To change it back, simply delete these 3 characters . . .
Code: Select all
,//

Add To Cart Confirm Ajax Popup for OC 1.5.1.3 --> 1.5.5.1 - Add to Cart Confirmation Popup
Image Map Banner Module - Image Map Banner Module
----------------------------------------------------------------------
Womens Famous Name Fashion Clothing at bargain prices - Next2nowt.com
Live Long and Prosper!
Degsey :-]
Visit us at :
http://www.Supreme-Ink.com
!!!!!UPDATE!!!!!
I've updated this file to reduce load times and some other minor improvements.
Please see this thread for the latest version:
http://www.opencart.com/forum/viewtopic ... 31&t=39194
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
The solution of "harryo40" above guides to the right direction but you have to fulfill changes on other three points, in other two scripts!!!
The whole solution:
First change:
Open category.php with your preferred editor on => catalog/controller/module/category.php
Go to the line 48: 'name' => $child['name'] . ' (' . $product_total . ')'
Change it to: 'name' => $child['name'],// . ' (' . $product_total . ')'
Go to line 62: 'name' => $category['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $category['name'],// . ' (' . $product_total . ')',
Second change:
Open category.php on => catalog/controller/product/category.php
Go to line 137: 'name' => $result['name'] . ' (' . $product_total . ')'
Change it to: 'name' => $result['name'],// . ' (' . $product_total . ')'
Third change:
Open category.php on => catalog/controller/common/header.php
Go to line: 'name' => $child['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $child['name'],// . ' (' . $product_total . ')',
Thanks to "harryo40" for his IDEA
Hope it helps...
FREETESTER
Code: Select all
'name' => $child['name'] . ' (' . $product_total . ')'
when I search for: (mind the extra space between 'name' and =>)
Code: Select all
'name' => $child['name'] . ' (' . $product_total . ')'
Although I like the way of being able to make changes without touching core files this method seems very error prone to me especially with regard to spaces (like mentioned above).
I am using opencart 1.5.1.3.
freetester wrote:remove counter next to product in category menu
The solution of "harryo40" above guides to the right direction but you have to fulfill changes on other three points, in other two scripts!!!
The whole solution:
First change:
Open category.php with your preferred editor on => catalog/controller/module/category.php
Go to the line 48: 'name' => $child['name'] . ' (' . $product_total . ')'
Change it to: 'name' => $child['name'],// . ' (' . $product_total . ')'
Go to line 62: 'name' => $category['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $category['name'],// . ' (' . $product_total . ')',
Second change:
Open category.php on => catalog/controller/product/category.php
Go to line 137: 'name' => $result['name'] . ' (' . $product_total . ')'
Change it to: 'name' => $result['name'],// . ' (' . $product_total . ')'
Third change:
Open category.php on => catalog/controller/common/header.php
Go to line: 'name' => $child['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $child['name'],// . ' (' . $product_total . ')',
Thanks to "harryo40" for his IDEA
Hope it helps...
FREETESTER
First change:
Open category.php with your preferred editor on => catalog/controller/module/category.php
Go to the line 49: 'name' => $child['name'] . ' (' . $product_total . ')'
Change it to: 'name' => $child['name'],// . ' (' . $product_total . ')'
Go to line 71: 'name' => $category['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $category['name'],// . ' (' . $product_total . ')',
Second change:
Open category.php on => catalog/controller/product/category.php
Go to line 137: 'name' => $result['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $result['name'],// . ' (' . $product_total . ')',
Third change:
Open category.php on => catalog/controller/common/header.php
Go to line: 'name' => $child['name'] . ' (' . $product_total . ')';
Change it to: 'name' => $child['name'];// . ' (' . $product_total . ')';
This is what I have done and it works fine.

Users browsing this forum: Majestic-12 [Bot] and 68 guests