Product count displayed in filters and/or menus

  • Posts: 26
  • Thank you received: 3
  • Hikashop Business
4 years 3 months ago #323175

-- 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: https://www.collectcamera.com/en-us/products/collectorshttps://www.collectcamera.com/en-us/products/collectors

Your help is greatly appreciated.

Cheers,
André

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 3 months ago #323177

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.

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 3
  • Hikashop Business
4 years 2 months ago #323374

Thank you for your reply, I understand and already kind of expected this, but hoped for more :-).

Cheers,
André

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum