Category Filters not working

  • Posts: 64
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
1 year 7 months 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: 2128
  • Thank you received: 287
  • MODERATOR
1 year 7 months 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: 1 year 7 months ago by Philip.

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

  • Posts: 64
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
1 year 7 months 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: 65630
  • Thank you received: 9578
  • MODERATOR
1 year 7 months 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.

  • Posts: 58
  • Thank you received: 5
  • Hikashop Business
3 months 6 days ago #303794

Hi I don't understand how filters work
Joomla 3.9.4 and hikashop v4.02 business
I have setup a menu item called "all products" id = 452
I have setup a filter module with menu id = 452
I have setup a category filter on
MAIN INFORMATION > Category: Baths
OPTIONS > Apply on: Category
Category: Baths

The filter loads in a sidebar module
When i select an option from my filter it brings up "product category" then a bunch of random products (that are not in my bath category)
How is this supposed to work please?

Attachments:
Last edit: 3 months 6 days ago by huwhuw.

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

  • Posts: 65630
  • Thank you received: 9578
  • MODERATOR
3 months 6 days ago #303795

Hi,

The filter will apply on the products displayed by the menu item, so first you need to make sure that the menu item used displays all the products by default.
In the filter module settings, you have the "menu" setting where you can enter the id of the menu item used.
So please check that setting and the options of the menu item corresponding to the id specified in that setting.
Also, could you provide a link to the page so that we could look a the behavior in order to better understand the situation ?

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

Time to create page: 0.081 seconds
Powered by Kunena Forum