- Posts: 26
- Thank you received: 3
Product count displayed in filters and/or menus
6 years 3 months ago #323175
by multigeo
Product count displayed in filters and/or menus was created by multigeo
-- url of the page with the problem -- :
www.collectcamera.com/en-us/new-arrivals
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : no error, just have a question
I would like to display a count of selected products in the filters (and possibly also in the menus), see attached sample.
Can you give some pointers about how to get this done (if at all possible of course)?
This is the site in question: www.collectcamera.com/en-us/products/col.../products/collectors
Your help is greatly appreciated.
Cheers,
André
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : no error, just have a question
I would like to display a count of selected products in the filters (and possibly also in the menus), see attached sample.
Can you give some pointers about how to get this done (if at all possible of course)?
This is the site in question: www.collectcamera.com/en-us/products/col.../products/collectors
Your help is greatly appreciated.
Cheers,
André
Please Log in or Create an account to join the conversation.
6 years 3 months ago #323177
by nicolas
Replied by nicolas on topic Product count displayed in filters and/or menus
Hi,
There is no easy way to do that.
It would require some complex coding in the file administrator/components/com_hikashop/classes/filter.php and that would mean adding one more MySQL query for each choice of each filter to get the count so if you have a lot of products / filters / choices it can significantly slow down the display of the page even if done properly, which would mean more complex coding to precalculate these values in a "cache" table.
That's basically why there is no option to activate to easily do that: hard to code, and potentially problematic.
It's on our todo list but we didn't get to work on that yet.
There is no easy way to do that.
It would require some complex coding in the file administrator/components/com_hikashop/classes/filter.php and that would mean adding one more MySQL query for each choice of each filter to get the count so if you have a lot of products / filters / choices it can significantly slow down the display of the page even if done properly, which would mean more complex coding to precalculate these values in a "cache" table.
That's basically why there is no option to activate to easily do that: hard to code, and potentially problematic.
It's on our todo list but we didn't get to work on that yet.
Please Log in or Create an account to join the conversation.
6 years 2 months ago #323374
by multigeo
Replied by multigeo on topic Product count displayed in filters and/or menus
Thank you for your reply, I understand and already kind of expected this, but hoped for more
.
Cheers,
André
Cheers,
André
Please Log in or Create an account to join the conversation.
Time to create page: 0.043 seconds