Category Filters not working

  • Posts: 59
  • Thank you received: 0
  • Hikashop Business
6 months 4 weeks ago #279100

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.0
-- PHP version -- : 7.0.23
-- Browser(s) name and version -- : Chrome 60.0.3112.113
-- Error-message(debug-mod must be tuned on) -- : None

Hi,

I am trying to make Filters work with categories, so, I can filter products based on the additional categories they are assigned to. However, the results are completely different to what I would expect. So, the first question is, am I thinking of Filters in wrong way? And if not can you help me make them work as I think they should?

Also do the filtered categories need to be below the current section in the category tree? Or can they be in a ‘side’ branch?

Below is an example of the problem I am seeing.

e.g. with the following categories

Categories:
- Products
--Plant
--- Mixers
--- Conveyers
--- Pumps
--- Transformers
--Power Type
--- 110v
--- 220v
--- Diesel
--- Petrol

and products:
Product 1: Categories (Mixers, 110v)
Product 2: Categories (Mixers, Diesel)
Product 3: Categories (Mixers, Petrol)
Product 4: Categories (Mixers, Petrol, Diesel)

Filter:
Power Type
Category: Products
Options Category: Power Type

Expected filter dropdown
Power Type
--- All
--- 110v
--- Diesel
--- Petrol

Actual filter dropdown
Power Type
--- All
--- Petrol

The results I am seeing is this Filter is only showing two options ‘All’ or ‘Petrol’ and selecting ‘Petrol’ gives zero results.

Regards
Tim

Attachments:

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

  • Posts: 1640
  • Thank you received: 237
  • MODERATOR
6 months 4 weeks ago #279142

Hello,

From what I see the result you get is strange... Can you screenshot your fully opened category tree and if possible provide an Url link with your filter please ?
From what we know I don't see where can be the root issue, awaiting news from you.

Regards

Last Edit: 6 months 4 weeks ago by Philip.

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

  • Posts: 59
  • Thank you received: 0
  • Hikashop Business
6 months 4 weeks ago #279151

Hi Phillip,

dev.ces-hire.com/shop/sales/mixers

In this section most of the Mixers are also in the '110v' Category and the first product is in both the '110v' and '220/240v' categories. Also in this section there are no products assigned to the 'Petrol' category.

Regards
Tim

Attachments:

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

  • Posts: 61846
  • Thank you received: 8797
  • MODERATOR
6 months 4 weeks ago #279162

Hi,

The "dynamic display" setting of the filter makes it so that it will only display the categories of the products in the current listing. Turn off that option of your filter. So in your case, you might want to turn it off.
Also, for category filters, you're supposed to select ideally the same category in both category settings so that the filter display in the category you want with its sub categories as values of the filter.
So you'll have to create several filters if you want to have a category selection filter on different categories.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum