-
AuthorPosts
-
Hrvoje Friend
Hrvoje
- Join date:
- October 2012
- Posts:
- 20
- Downloads:
- 35
- Uploads:
- 3
- Thanks:
- 4
- Thanked:
- 2 times in 2 posts
November 7, 2017 at 8:00 pm #1072964Hello
I wonder, is it possible to hide filter items with zero count?
For example when filter is not applied both category and manufacturer drop downs show all listed with item counter after to category or manuf. names. When category or manufacturer is selected, items are ajax-updated and counter displays zero (0)
Ideally it should hide category or manufacturer with zero items, when filtered.
Please look into attached photo.
When I select Eau de Parfum, Manufacturer drop down should be cleared of manufacturer names with (0) items.
Most of Virtuemart filters works like what I’m proposing, so itr would be awesome if your filter could do that too. Or at least to have an option to choose if hide empty ones.What do you think?
Regards
Mr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
Hrvoje FriendHrvoje
- Join date:
- October 2012
- Posts:
- 20
- Downloads:
- 35
- Uploads:
- 3
- Thanks:
- 4
- Thanked:
- 2 times in 2 posts
November 9, 2017 at 1:32 pm #1073353Hello
Excellent.
Is it possible to get approx ETA for implementation for this?
I know that this is most unpopular question type but I simply must ask it because of internal reasons I cannot launch website updated with new Megafilter before this is implemented.
Looking forward to new version.
Thanks
RegardsMr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
November 10, 2017 at 4:58 am #1073525I can’t tell you about ETA, but here is quick guide to get what you want (Make sure that you’re using latest version of ja megafilter)
Open file
/components/com_jamegafilter/assets/js/megafilter.js
Go to line 1046 and add this code
if (self.mcount) { self.$item.show() } else { self.$item.hide() }
Regards
Wisdom is not a product of schooling but of the lifelong attempt to acquire it.
1 user says Thank You to Mr.Cat for this useful post
Hrvoje FriendHrvoje
- Join date:
- October 2012
- Posts:
- 20
- Downloads:
- 35
- Uploads:
- 3
- Thanks:
- 4
- Thanked:
- 2 times in 2 posts
November 17, 2017 at 10:59 am #1074991Hello
Thanks for the hint.
Sorry for late reply I was away.
Best RegardsAuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 4 replies, has 2 voices, and was last updated by Hrvoje 7 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Virtuemart: Hide names with empty items in filter dropdowns
Viewing 5 posts - 1 through 5 (of 5 total)