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?
Views: 1,116
Zen Follower
Hi there - does anyone know how to turn on Sub-Category counts and if possible not the main category count for version 1.5?
Black Belt
Most of us turn off the category counts. Why do you want them for subcategories ?
Zen Follower
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?
Zen Follower
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?
Totally Zenned
In ZC 1.5.5, in the configuration->my store section there is Show Category Counts as an option.
Zen Follower
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.
Totally Zenned
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.
Zen Follower
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.
Administrator
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).
Totally Zenned
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:
Administrator
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; }
Zen Follower
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:
Totally Zenned
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.
Tell staff why this post should be reviewed.