Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Originally Posted by
DrByte
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>
I think we diagnosed it just about the same time, good to know that both of us realized the same thing, and great that one of us has the smarts to know how to fix it. Gotta love teamwork, yes? Thank you DrB. I'll make the change.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Bookmarks