Yes ma'am, but again what works for the full version, which is awesome, doesn't work for the alleged "responsive" mobile, which is not very friendly, not well supported and doesn't care what happens on the full version.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Just a side note: I don't use the Information box on the desktop, thus the problem doesn't show up. The mobile version forces it in there.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Well, DrByte...I got the email with your question, but see it isn't here anymore and yes...when lat9 pointed me that direction I turned it off but the mobile didn't respond in kind.
We're trying to get the mobile version of a very good template to behave because I'm a stubborn old man that doesn't give up easily and I'm not willing to give up on it...yet.
Now the doc(umentation) just put a new twist on the numbers thingy -"Key: SHOW_COUNTS
Path: Configuration > My Store
Description: Count recursively how many products are in each category, when I thought you said it doesn't count products. What'd I miss?
Last edited by TheGrimReaper; 2 Feb 2021 at 10:59 PM.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Now the Doc(umentation) just put a new twist in the basket,
Key: SHOW_COUNTS
Path: Configuration > My Store
Description: Count recursively how many products are in each category
Having a products count would be wildly desirable and a very valuable, useful feature. It's just the counting categories that puts the worm in my apple.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
I DO think I recall that maybe the product count was in the Information box and I'll go back and see if that's true, but in the mobile it's seems to be counting only categories...which isn't real useful. Dang, now I gotta second guess myself and go back to see how stupid I am.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Ok, in the full version it counts the products in the categories not the categories - that's cool. That's what should be. The mobile version is counting categories, not products. Whew,.....
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Turns out lat9 and I were both wrong about the counts in the responsive_classic mobile menu.
Those counts are not generated by Zen Cart at all. And they don't represent products or categories directly.
They're in javascript, and the numbers represent the number of sub-items in the menu's HTML, giving hints about how large the sub-menu will be if clicked.
You can turn off those counts in tpl_modules_mobile_menu.php by changing counters: true to counters: false here:
Code:<script type="text/javascript"> $(function() { $("#menu") .mmenu({ slidingSubmenus : false, extensions : [ "theme-dark", "effect-listitems-slide" ], iconPanels: { add : true, visible: 1 }, navbar: { add : false }, counters: true }).on('click', 'a[href^="#/"]', function() { alert("Thank you for clicking, but that's a demo link."); return false; }); }); </script>
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I don't use the categories sidebox because I don't need the redundancy of the top menu in a sidebox too. I mistakenly referred to it as the Information sidebox, (deep red blush) sorry folks. It's the categories in the mobile that has the issue.
In mobile:
The number in the information box reflects how many items are in it, mine has, and reflects 7. I don't need that number there, but at least it matches to the contents.
The categories box says I have 10 categories, which I do and some of those have the correct numbers for how many subs there are, which is accurate. So, the counting in the mobile tells us the number of only the next level of categories and those do not tell us how many products once the lowest level is reached. I see what it's doing, but trying to explain it confuses even this author. I'll try to figure out how to articulate it better............
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Ok, the link "Categories" 10 - there ARE 10
Open that and we see
"Children's toys" 6
There are not 6 children's toys - right now there's 20 that I have in as of yet, but I have 6 sub-sub categories - this means it counts whatever is immediately below it and those numbers are correct.
The problem is, one gets the impression there are 6 children's toys, not 6 children's toys categories - thus the confusion and desire to ditch the numbers overall. I'm sure the counter is working as designed and it's wrong of me to say it isn't. If it went deeper and said "Ride on cars - 20" that would be accurate and ok, but then I'd want to have only those numbers and not the category counts.
It would also be great if at the "Childrens Toys" Level the number reflected the count of all products in all of the subs, thus products total, and upon descending the hierarchy it started to reflect the amount of toys in that sub cat, and so on until in the end all those sub, sub products totaled the 20 at the top-but I understand that is adding a bit of additional code and and realistically don't expect that. It would make a better though. For now, I'd settle for the numbers to go away in the mobile as they do in the full version when I turn them off.
I think that's a better explanation.........
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Bookmarks