[vQmod] Remove product count from all category areas
88 posts
• Page 4 of 5 • 1, 2, 3, 4, 5
Re: [vQmod] Remove product count from all category areas
Thanks Spitos for some awesome behind the scenes help with this.
Could not be any more helpful(considering it is probably something on my site that is causing the issue!)
Cheers
Murray
Could not be any more helpful(considering it is probably something on my site that is causing the issue!)
Cheers
Murray
- bigmuz
- Posts: 6
- Joined: Fri Feb 17, 2012 4:05 am
Re: [vQmod] Remove product count from all category areas
maccadon wrote:I also get an error:
- Code: Select all
Undefined variable: product_total in ../vqmod/vqcache/vq2-catalog_controller_product_category.php on line 328
I modified the the category with this code to display category images
- Code: Select all
../catalog/controller/product/category.php
$product_total = $this->model_catalog_product->getTotalProducts($data);
$image = $this->model_tool_image->resize($result['image'], 60, 60);
$this->data['categories'][] = array(
'name' => $result['name'] . ' (' . $product_total . ')',
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url),
'thumb' => $image
);
}
- Code: Select all
../catalog/view/theme/YOURTHEME/template/product/category.tpl
<?php if ($categories) { ?>
<div class="box">
<div class="box-heading"><?php echo $text_refine; ?></div>
<div class="box-content">
<div class="box-product">
<?php foreach ($categories as $category) { ?>
<div>
<?php if ($category['thumb']) { ?>
<div class="image">
<a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a>
</div>
<?php } ?>
<div><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div></div>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
I don't know what you are asking me here??
I'll send a PM.
Get it here Google Analytics Expert - E-Commerce Tracking including Product Options, Goal & Funnel Reporting, Event Tracking, Search Tracking, Multi-Store compatibility & EU Cookie Law compliance. Works with Shoppica too!
Free Mods:
Remove Wishlist | Remember text in search box
Other Extensions:
Remove product counts, Opencart speedup & Improve page load time | All Extensions
-

spitos - Posts: 258
- Joined: Mon May 23, 2011 10:19 am
- Location: UK
Re: [vQmod] Remove product count from all category areas
Spitos has been a great help with this- he logged on to my site and fixed my small issue (due to me stuffing up an exisiting opencart file.)
Ten out of ten- mod works great and support is incredible.
Thanks heaps Spitos.
Ten out of ten- mod works great and support is incredible.
Thanks heaps Spitos.
- bigmuz
- Posts: 6
- Joined: Fri Feb 17, 2012 4:05 am
Re: [vQmod] Remove product count from all category areas
I can't get this mod working. I get the following error in the vqmod.log file:
SEARCH NOT FOUND (ABORTING MOD): $child['name'] = $child['name'] . ' (' . $product_total . ')';
I've been looking for this code in catalog/controller/module/category.php but it isn't there. I've also looked through my other mods and no one are modifing the same code. Is there anything wrong with the code in your mod?
I'm running OC 1.5.1.3.
SEARCH NOT FOUND (ABORTING MOD): $child['name'] = $child['name'] . ' (' . $product_total . ')';
I've been looking for this code in catalog/controller/module/category.php but it isn't there. I've also looked through my other mods and no one are modifing the same code. Is there anything wrong with the code in your mod?
I'm running OC 1.5.1.3.
Last edited by thbr02 on Thu Mar 22, 2012 7:41 am, edited 1 time in total.
- thbr02
- Posts: 179
- Joined: Wed Jun 22, 2011 2:30 pm
Re: [vQmod] Remove product count from all category areas
You can turn off product counts in OpenCart 1.5.2.x though it doesn't apply to the page header.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
-

rph - Posts: 2701
- Joined: Thu Jan 07, 2010 9:05 pm
- Location: Lincoln, Nebraska
Re: [vQmod] Remove product count from all category areas
thbr02 wrote:I can't get this mod working. I get the following error in the vqmod.log file:
SEARCH NOT FOUND (ABORTING MOD): $child['name'] = $child['name'] . ' (' . $product_total . ')';
I've been looking for this code in catalog/controller/module/category.php but it isn't there. I've also looked through my other mods and no one are modifing the same code. Is there anything wrong with the code in your mod?
I'm running OC 1.5.1.3.
I've sent a PM with the latest file
Get it here Google Analytics Expert - E-Commerce Tracking including Product Options, Goal & Funnel Reporting, Event Tracking, Search Tracking, Multi-Store compatibility & EU Cookie Law compliance. Works with Shoppica too!
Free Mods:
Remove Wishlist | Remember text in search box
Other Extensions:
Remove product counts, Opencart speedup & Improve page load time | All Extensions
-

spitos - Posts: 258
- Joined: Mon May 23, 2011 10:19 am
- Location: UK
Re: [vQmod] Remove product count from all category areas
can you check your PM's please ?
- evilfx
- Posts: 27
- Joined: Fri Mar 23, 2012 12:28 am
Re: [vQmod] Remove product count from all category areas
Hi
Just purchased your mod, quick question though. Your description says the following:
There are now two versions of this contained in separate vqmods.
However the mod I just downloaded only has one file. Am I missing something here! Going to try with this one file and will get back to you. Looks like an awesome mod!
Thanks
Just purchased your mod, quick question though. Your description says the following:
There are now two versions of this contained in separate vqmods.
"One will remove all product counts as well as hide sub categories from the category module (useful for stores with lots of sub categories).
The other will remove all product counts but keep the sub categories showing in the category module."
However the mod I just downloaded only has one file. Am I missing something here! Going to try with this one file and will get back to you. Looks like an awesome mod!
Thanks
- Green Machine
- Posts: 1
- Joined: Wed Apr 18, 2012 11:40 am
Re: [vQmod] Remove product count from all category areas
I just purchased this and uploaded. I still see the product counts everywhere though. I am using the sellegance theme and I had added sub category images in category.php so that may be interfering?
I attached my category.php if anyone can tell me what I have to change? Thank you so much!
I attached my category.php if anyone can tell me what I have to change? Thank you so much!
- Attachments
-
category.php- (2.98 KiB) Downloaded 68 times
- gti2756
- Posts: 4
- Joined: Mon Apr 30, 2012 2:56 pm
Re: [vQmod] Remove product count from all category areas
rph wrote:You can turn off product counts in OpenCart 1.5.2.x though it doesn't apply to the page header.
Hi Ryan,
Where can I find that option in the back-end?
- expanism
- Posts: 50
- Joined: Fri Sep 30, 2011 12:43 pm
Re: [vQmod] Remove product count from all category areas
I am getting this error:
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/content/02/4740502/html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 368
I have subcategory images installed also.
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/content/02/4740502/html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 368
I have subcategory images installed also.
- keether
- Posts: 90
- Joined: Sat Sep 18, 2010 1:13 am
Re: [vQmod] Remove product count from all category areas
I sent a PM 3 days ago AND posted in this forum. Havnt heard a thing
- keether
- Posts: 90
- Joined: Sat Sep 18, 2010 1:13 am
Re: [vQmod] Remove product count from all category areas
keether wrote:I sent a PM 3 days ago AND posted in this forum. Havnt heard a thing
So the other extension you have installed is conflicting with this one?
What happens when you remove the other extension?
Last edited by spitos on Wed May 16, 2012 1:18 pm, edited 1 time in total.
Get it here Google Analytics Expert - E-Commerce Tracking including Product Options, Goal & Funnel Reporting, Event Tracking, Search Tracking, Multi-Store compatibility & EU Cookie Law compliance. Works with Shoppica too!
Free Mods:
Remove Wishlist | Remember text in search box
Other Extensions:
Remove product counts, Opencart speedup & Improve page load time | All Extensions
-

spitos - Posts: 258
- Joined: Mon May 23, 2011 10:19 am
- Location: UK
Re: [vQmod] Remove product count from all category areas
gti2756 wrote:I just purchased this and uploaded. I still see the product counts everywhere though. I am using the sellegance theme and I had added sub category images in category.php so that may be interfering?
I attached my category.php if anyone can tell me what I have to change? Thank you so much!
Please send me a PM with a URL so I can look at it for you. It's probably conflicting with the custom theme or the sub category images mod
Get it here Google Analytics Expert - E-Commerce Tracking including Product Options, Goal & Funnel Reporting, Event Tracking, Search Tracking, Multi-Store compatibility & EU Cookie Law compliance. Works with Shoppica too!
Free Mods:
Remove Wishlist | Remember text in search box
Other Extensions:
Remove product counts, Opencart speedup & Improve page load time | All Extensions
-

spitos - Posts: 258
- Joined: Mon May 23, 2011 10:19 am
- Location: UK
Re: [vQmod] Remove product count from all category areas
Yes, it is conflicting with subcategory images mod. URL is http://brokenheartpetmemorials.com
I will pm you FTP if you need it.
Thanks
I will pm you FTP if you need it.
Thanks
- keether
- Posts: 90
- Joined: Sat Sep 18, 2010 1:13 am
Re: [vQmod] Remove product count from all category areas
Please PM me this file from the vqcache folder:
Thanks
- Code: Select all
vq2-catalog_controller_product_category.php
Thanks
Get it here Google Analytics Expert - E-Commerce Tracking including Product Options, Goal & Funnel Reporting, Event Tracking, Search Tracking, Multi-Store compatibility & EU Cookie Law compliance. Works with Shoppica too!
Free Mods:
Remove Wishlist | Remember text in search box
Other Extensions:
Remove product counts, Opencart speedup & Improve page load time | All Extensions
-

spitos - Posts: 258
- Joined: Mon May 23, 2011 10:19 am
- Location: UK
Re: [vQmod] Remove product count from all category areas
Hi Spitos
I have the same conflict as keether (sub category images) - I've pm'd you the same file you requested from him.
I've temporarily removed the xml file so I can continue to work on the site.
Thanks and look forward to hearing from you.
I have the same conflict as keether (sub category images) - I've pm'd you the same file you requested from him.
I've temporarily removed the xml file so I can continue to work on the site.
Thanks and look forward to hearing from you.
- daisybeedesign
- Posts: 29
- Joined: Tue Jan 17, 2012 4:44 pm
Re: [vQmod] Remove product count from all category areas
FYI this is added to the core in 1.5.3
1.5.2 added the option to set product count from the category module configuration area for the module count
1.5.3 added the option to set product count for the top category menu in the system->setting->server tab
So you wont need this script in future versions.
1.5.2 added the option to set product count from the category module configuration area for the module count
1.5.3 added the option to set product count for the top category menu in the system->setting->server tab
So you wont need this script in future versions.

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18200
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [vQmod] Remove product count from all category areas
FYI I will still support this for anyone who has purchased and is needing help.
Get it here Google Analytics Expert - E-Commerce Tracking including Product Options, Goal & Funnel Reporting, Event Tracking, Search Tracking, Multi-Store compatibility & EU Cookie Law compliance. Works with Shoppica too!
Free Mods:
Remove Wishlist | Remember text in search box
Other Extensions:
Remove product counts, Opencart speedup & Improve page load time | All Extensions
-

spitos - Posts: 258
- Joined: Mon May 23, 2011 10:19 am
- Location: UK
Re: [vQmod] Remove product count from all category areas
Hello Spitos,
I think I have the same problem as others have (sub category images). I PM you the file, but I do not see that it was sent. Can you please respond if you got it or not?
Greeting,
Raymond
I think I have the same problem as others have (sub category images). I PM you the file, but I do not see that it was sent. Can you please respond if you got it or not?
Greeting,
Raymond
- RMVW
- Posts: 36
- Joined: Thu Dec 15, 2011 7:43 am
88 posts
• Page 4 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 4 guests













