Zen Cart Logo
Forums / General Questions / Sub-Category Counts

Sub-Category Counts

Views: 1,116

Results 1 to 13 of 13
17 Aug 2012, 6:39 PM
#1
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Sub-Category Counts

Hi there - does anyone know how to turn on Sub-Category counts and if possible not the main category count for version 1.5?

17 Aug 2012, 7:32 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sub-Category Counts

Most of us turn off the category counts. Why do you want them for subcategories ?

17 Aug 2012, 9:12 PM
#3
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Sub-Category Counts

stevesh:

Most of us turn off the category counts. Why do you want them for subcategories ?

Because that's the way I want it to be - is this not possible?

5 Feb 2017, 3:07 AM
#4
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

Re: Sub-Category Counts

stevesh:

Most of us turn off the category counts. Why do you want them for subcategories ?

I can't seem to see where to turn them off. Can someone let me know please?

5 Feb 2017, 3:56 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Sub-Category Counts

In ZC 1.5.5, in the configuration->my store section there is Show Category Counts as an option.

25 Nov 2017, 4:24 PM
#6
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Sub-Category Counts

Hello,

I am using Classic Responsive template 1.5.5.

I was able to remove product count via Admin>My Store>Show Category Counts>false.

It works fine in Desktop Version.

But in Tablet and Mobile Versions there are SubCategory counts which we would like to remove (please see attached image).

[Attachment no longer available]

Please suggest where is this done in Admin or editing?

Thank you for your time in advance.

26 Nov 2017, 4:03 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Sub-Category Counts

idtags:

Hello,

I am using Classic Responsive template 1.5.5.

I was able to remove product count via Admin>My Store>Show Category Counts>false.

It works fine in Desktop Version.

But in Tablet and Mobile Versions there are SubCategory counts which we would like to remove (please see attached image).

[Attachment no longer available]

Please suggest where is this done in Admin or editing?

Thank you for your time in advance.
You're referring to the listing of how many sub-categories are immediately within the current visible category while the menu listing is made available? The sample file didn't seem to come through, but I was able to see numbers adjacent to a category name while in a mobile view and having the quantity of product option as described turned off for the store front.

26 Nov 2017, 1:46 PM
#8
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Sub-Category Counts

I am reposting my question as there is a problem with an attachment. Not sure why. It worked on preview.

I am using Classic Responsive template 1.5.5.

I was able to remove product count via Admin>My Store>Show Category Counts>false.

It works fine in Desktop Version.

But in Tablet and Mobile Versions there are SubCategory counts which we would like to remove (please see attached image).

[Attachment no longer available]

How to to remove subcategory count on Tablet and Mobile template?

Please suggest where is this done in Admin or editing?

Thank you for your time in advance.

26 Nov 2017, 2:06 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Sub-Category Counts

As a distinction, what @idtags is seeing is the result of the mobile/tablet jQuery mmenu (mobile-menu) processing.

Those numbers aren't category counts per se, they're sub-link counts (e.g. the number at the end of the Categories link identifies the number of sub-links, ditto with the compressed "Information" sidebox which shows the number of links available).

26 Nov 2017, 2:11 PM
#10
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Sub-Category Counts

idtags:

I am reposting my question as there is a problem with an attachment. Not sure why. It worked on preview.

I am using Classic Responsive template 1.5.5.

I was able to remove product count via Admin>My Store>Show Category Counts>false.

It works fine in Desktop Version.

But in Tablet and Mobile Versions there are SubCategory counts which we would like to remove (please see attached image).

[Attachment no longer available]

How to to remove subcategory count on Tablet and Mobile template?

Please suggest where is this done in Admin or editing?

Thank you for your time in advance.
There is no separate admin switch. I suspect it is hard coded in to the template, but I have not looked at the files yet.

Edit: Cindy beat me to it :smile:

26 Nov 2017, 2:11 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Sub-Category Counts

lat9:

As a distinction, what @idtags is seeing is the result of the mobile/tablet jQuery mmenu (mobile-menu) processing.

Those numbers aren't category counts per se, they're sub-link counts (e.g. the number at the end of the Categories link identifies the number of sub-links, ditto with the compressed "Information" sidebox which shows the number of links available).
You can hide those numbers' display via an update to your template's version of /css/jquery.mmenu.all.css, adding the following rule at the very bottom of the file:

.mm-menu em.mm-counter { display: none; }
26 Nov 2017, 4:35 PM
#12
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Sub-Category Counts

I found answer for my question here.

I was not sure how to make precision link to particular posting, so I pasted it below as is:

*"Quote Originally Posted by DrByte View Post

I realize you asked specifically about the Mobile Menu, so I will assume that you've already turned off Category Counts here: https://www.zen-cart.com/content.php?198

And, doing that DOES turn off the Category Counts, even in the mobile menu.
But you're probably referring to the "sub-menu counter" that gives an indicator about how many sub-links are available in each sub-level in the mobile-specific menu.

So, to turn off the counts of how many sub-levels are available in the whole mobile-menu, edit **/includes/templates/YOUR_RESPONSIVE_TEMPLATE/templates/tpl_modules_mobile_menu.php: **
Line 159:

Code:
counters: true

...** change that to false,** and ALL sub-level indicators will no longer have ANY counters. Be sure you assess whether you really want that turned off"*

I tested it, it works as described. It fixed the same issue in Tablet mode as well.

Thank you everybody for the effort to help. :smile:

26 Nov 2017, 5:05 PM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Sub-Category Counts

idtags:

I found answer for my question here.

I was not sure how to make precision link to particular posting, so I pasted it below as is:

*"Quote Originally Posted by DrByte View Post

I realize you asked specifically about the Mobile Menu, so I will assume that you've already turned off Category Counts here: https://www.zen-cart.com/content.php?198

And, doing that DOES turn off the Category Counts, even in the mobile menu.
But you're probably referring to the "sub-menu counter" that gives an indicator about how many sub-links are available in each sub-level in the mobile-specific menu.

So, to turn off the counts of how many sub-levels are available in the whole mobile-menu, edit **/includes/templates/YOUR_RESPONSIVE_TEMPLATE/templates/tpl_modules_mobile_menu.php: **
Line 159:

Code:
counters: true

...** change that to false,** and ALL sub-level indicators will no longer have ANY counters. Be sure you assess whether you really want that turned off"*

I tested it, it works as described. It fixed the same issue in Tablet mode as well.

Thank you everybody for the effort to help. :smile:

Couple of things: precision link is available "typically" by copying the link from the post number at the right top corner of the specific post (for example the above post is post #12: https://www.zen-cart.com/showthread.php?199198-Sub-Category-Counts&p=1338655#post1338655).

For future testing on your own (obviously the forum is available to support/provide additional information), you could put your "desktop" into a mode such as for mobile or tablet by adding the layoutType parameter to your uri such as &layoutType=mobile or &layoutType=tablet. Tablet can do the same for mobile, but mobile is "stuck" as mobile. To "reset" you can include the parameter but with no right side value. What that does (like what I did a few minutes ago, absent of seeing any other's posts) was to navigate to the page, set the browser to act like one of the "smaller" devices, inspected the mobile menu, found that there was javascript associated and then was able to find the specific switch that was described above. Now back to updating a website.