[vQmod] Remove product count from all category areas
88 posts
• Page 1 of 5 • 1, 2, 3, 4, 5
[vQmod] Remove product count from all category areas
This will remove the product count next to the category in the header, category module and also category pages. It will also massively reduce page load time on large stores.
There are now two versions of this vqmod.
Please visit the extension page for details:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=3444
There are now two versions of this vqmod.
Please visit the extension page for details:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=3444
Last edited by spitos on Tue Oct 04, 2011 1:46 am, edited 3 times 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
Nice one!
I completely forgot about the item count ont he actual category page. Handy having it in one file as well, I split the module and mene changes into two in case for some reaosn I required one of them on.
I completely forgot about the item count ont he actual category page. Handy having it in one file as well, I split the module and mene changes into two in case for some reaosn I required one of them on.
- RitchieTheBrit
- Posts: 16
- Joined: Sat Apr 09, 2011 9:44 pm
Re: [vQmod] Remove product count from all category areas
Sorry if this is a dumb question, but how is this used? I tried uploading the file you posted and accessing it via my browser, but that did nothing. I'm sort of a newbie. 

- hcorobert
- Posts: 5
- Joined: Mon Aug 29, 2011 12:31 am
- cantykiwi
- Posts: 63
- Joined: Mon Sep 13, 2010 4:37 am
Re: [vQmod] Remove product count from all category areas
Hi Spitos,
Does this stop the actual queries from being run ?
If so this will be great for stores with a large amount of categories cutting the overhead and page load time down dramatically.
Does this stop the actual queries from being run ?
If so this will be great for stores with a large amount of categories cutting the overhead and page load time down dramatically.
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Remove product count from all category areas
Hi Simon,
I've just updated the xml files with the changes to fix speed issues for large stores.
It now loads the pages soooo much quicker than before!!
Would you believe that it took over 18 seconds to load one of the main category pages!? With these changes it now takes less than 2 seconds!
I was struggling to find a resolution for the speed issues due to the massive (well over 150k and growing) categories & sub categories we currently have on the store but your prompt has sorted that out and I can move on.
I've just updated the xml files with the changes to fix speed issues for large stores.
It now loads the pages soooo much quicker than before!!
Would you believe that it took over 18 seconds to load one of the main category pages!? With these changes it now takes less than 2 seconds!
I was struggling to find a resolution for the speed issues due to the massive (well over 150k and growing) categories & sub categories we currently have on the store but your prompt has sorted that out and I can move on.
Last edited by spitos on Tue Oct 04, 2011 1:54 am, edited 3 times 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
Hmm, when i try to use this mod i get a 500 server error? any ideas... I'm running the latest vqmod and oc 1.5.1.1
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
Re: [vQmod] Remove product count from all category areas
Do you have other mods installed?
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 wrote:Do you have other mods installed?
Yes, and now you say that, I do have the module that hides empty categories... that might be the problem :/
Testet and yep that is the problem

And now when it works I can see that I cant use my sub categories...
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
Re: [vQmod] Remove product count from all category areas
Open the two xml files and look at the operations to change the code.
I'm guessing there is a conflict and both files are changing the same piece of code, i've experienced this before with other mods.
You may need to merge or edit the code so that both are being run successfully.
What do you mean by this?
I'm guessing there is a conflict and both files are changing the same piece of code, i've experienced this before with other mods.
You may need to merge or edit the code so that both are being run successfully.
What do you mean by this?
And now when it works I can see that I cant use my sub categories...
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
What I mean is when I remove the module that hides the empty cats, then your module work, but I get no sub categories for my products...
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
Re: [vQmod] Remove product count from all category areas
This module only hides the product count from the categories and sub categories, it doesn't hide the sub categories from showing themselves.
I have this working for me and sub categories display fine, what happens if you remove both of the extensions?
I have this working for me and sub categories display fine, what happens if you remove both of the extensions?
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
If I remove both mods the product module works normal, when I use your module I cant access my sub cats and if I use both mods I get the error.. maby I need to say the cat module is added to the left side..
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
Re: [vQmod] Remove product count from all category areas
So your sub-categories categories don't show ONLY in the category module on the left?
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, I only have sub categories in the category module, the topbar has been edited to use hardcoded links.
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
Re: [vQmod] Remove product count from all category areas
Running 1.5.1.1 and just installed this mod. However I have this same problem as MKH. Sub categories don't show on the left. Only Parent categories. Why??
-

jomeza001 - Posts: 193
- Joined: Tue May 17, 2011 2:55 am
Re: [vQmod] Remove product count from all category areas
To enable sub category display in category module, go to:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=3444
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=3444
Last edited by spitos on Tue Oct 04, 2011 1:48 am, 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
Didn't work for me. I applied the code changes above and the result is:
1.- Header categories with no counter (perfect)
2.- Left menu showing categories AND sub-categories (perfect), but both with Counters
I think the goal is to disable ALL the category counters and stop the Counters Query, but still show Child Categories where they should be displayed (left menu).
1.- Header categories with no counter (perfect)
2.- Left menu showing categories AND sub-categories (perfect), but both with Counters

I think the goal is to disable ALL the category counters and stop the Counters Query, but still show Child Categories where they should be displayed (left menu).
-

jomeza001 - Posts: 193
- Joined: Tue May 17, 2011 2:55 am
Re: [vQmod] Remove product count from all category areas
Ah okay, MKH said that it solved the problem for him.
I'll try and have a look at it later today and find a resolution, in the meantime please test out the changes by manually editing the category module file to ensure there are no conflicts going on (you should revert these if it doesn't work).
I'll try and have a look at it later today and find a resolution, in the meantime please test out the changes by manually editing the category module file to ensure there are no conflicts going on (you should revert these if it doesn't work).
Last edited by spitos on Tue Oct 04, 2011 1:48 am, 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
Yep, Mike the changes you sent me by email worked here... also the same you listed here on the site...
So a big thanks...
So a big thanks...
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
88 posts
• Page 1 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: flanders and 3 guests














