Multi level products search

  • Posts: 252
  • Thank you received: 1
8 years 6 months ago #257742

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.5
-- PHP version -- : 5.5.12

Hi
I have 2 questions about products listing:
1. Our user require 3 levels category search as shown below for products listing.



Is there a module for this?
If no, could you recommend or provide some sample code ?

2. I have an array of product ids, how could I use it as data source, to show it in product listing?

Thanks in advance
Best regards



Best regards

Attachments:

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #257747

Hi,

1. It's not possible with categories with the options available.
What you can do is to use instead three custom product fields of the type dropdown with all the possible values and then three filters applying on these fields with their dynamic display turned on.

To do it with categories instead of custom fields, it would require a custom module to be developed to display the dropdowns with a custom plugin implementing the onBeforeProductListingLoad trigger to set your condition on the query loading the products :
www.hikashop.com/support/documentation/6...reProductListingLoad

2. You could set your array of ids in the variable:

$_SESSION['hikashop_viewed_products']
If you have a module with the "recently viewed" option turned on, it will automatically use the ids.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum