HikaShop - HikaShop Filter Module . Categories

  • Posts: 67
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
2 months 1 week ago #370713

-- HikaShop version -- : 6.3.0
-- Joomla version -- : 5.4.2

Hello

When configuring the HikaShop Filter Module, there are certain filters that can be used, such as price range, categories, brands, etc.

My question is whether it's possible to add new filters from the settings, for example, location (state, department, or province), whether the product has shipping, or whether the product is in stock.

Thank you!

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

  • Posts: 85609
  • Thank you received: 14016
  • MODERATOR
2 months 1 week ago #370715

Hi,

Yes, the HikaShop filter module supports several built-in data types beyond price and categories:

- Categories : filter by product categories
- Price : filter by price range
- Manufacturers : filter by brand/manufacturer
- Characteristics : filter by product characteristics/variations
- Product information : filter by weight or dimensions (with unit selection)
- In stock checkbox : a dedicated filter type that lets customers show only products that are in stock
- Custom fields : filter by any custom field you've created on the product table
- Sort : sorting options

For your specific needs:
- Stock status: Use the built-in "In stock checkbox" filter type, it's designed exactly for this.
- Location (state, department, province): Create product custom fields (dropdown type) for these attributes in Display > Custom fields, then use the "Custom fields" data type in the filter module to expose them.
- Shipping availability: There's no direct filter for shipping since it depends on dynamic factors (destination address, weight, shipping method restrictions). However, if shipping availability correlates with weight, you could use the "Product information" data type set to weight with a cursor/range slider. Otherwise, a custom field indicating shipping zones would be the practical approach.

You can find more details about the filter module configuration in our documentation:
www.hikashop.com/support/documentation/1...-filter-listing.html

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

  • Posts: 67
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
2 months 2 days ago #370781

Hello

I'm having trouble understanding how the filters work.

I followed the documentation you sent me, and I've attached a screenshot of the category filter configuration I want to use. In the module's "Main information," I didn't assign any categories, so it appears in all listings. In "Options," I selected a category with six lower-level subcategories and multiple subcategories within those.

However, when I go to the front end, it only shows one of the six subcategories. It goes without saying that I've already configured the "Including subcategories" option.

I would appreciate it if you could explain this to me or share a video. I'm even willing to give you administrator access if needed, so you can configure it and I can see how to do it.

Thanks!

Attachments:

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

  • Posts: 85609
  • Thank you received: 14016
  • MODERATOR
2 months 2 days ago #370784

Hi,

Looking at your screenshot, the Category field in the Main Information section (on the left) is empty. That's the field that tells the filter which parent category to use for listing its subcategories as filter options. Since it's empty, the filter doesn't know which subcategories to display.

You need to select the parent category there. For example, if your six subcategories are all children of a category called "Productos", select "Productos" in that Category field. With "Including sub categories" set to Yes, the filter will then list all subcategories under that parent as checkbox options on the frontend.

The "Category" setting on the right side in the Options panel is a different thing. That one controls on which category pages the filter module should appear, not which categories to use as filter values.

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

  • Posts: 67
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 month 3 weeks ago #370913

Hi

I'm following your instructions, but the result isn't what I expected. If you look at the images I'm sharing, the filter only shows one of the subcategories of the main category. It seems there's another problem I'm not noticing.

Thanks!

Attachments:

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

  • Posts: 85609
  • Thank you received: 14016
  • MODERATOR
1 month 3 weeks ago #370917

Hi,

Looking at your screenshots, the filter configuration looks correct. The "Category" field in Main Information is set to "Categorias de Producto" and the "Category" field in Options is also set to "Categorias de Producto", which is the right parent category.

The reason only "Belleza & Bienestar" is displayed is most likely because you have "Dynamic display" set to "Yes" in the Extra Information section of the filter configuration. When dynamic display is enabled, the filter only shows categories that have products assigned to them in the current product listing. If only "Belleza & Bienestar" has products in it, the other 5 categories will be hidden.

You can either:
1. Set "Dynamic display" to "No" so that all 6 subcategories always appear as filter options regardless of whether they have products.
2. Make sure your products are assigned to the other categories (Moda, Diseno & Hogar, Gourmet, Infantil, Oficios & Tradicion) as well. You can check this by editing a product and looking at the "Categories" setting.

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

  • Posts: 67
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 month 3 weeks ago #370925

Hi

Great, we're making progress. Now all the subcategories are visible.

Now something else has come up. As you suspected, the subcategories don't have any assigned products, except for Beauty and Wellness. This category does have one assigned product, but now that all the filters are visible, if I select the "Belleza y Bienestar" filter, no products appear in the list.

On the other hand, as you saw in the settings, "Include subcategories" is checked. So why, when I select any category in the filter, don't I see any products from the subcategories?

Finally, if you look at the filter settings, it says "Number of columns" = 1, but if you look at the screenshot I'm sending you, it shows the filter in two columns. I tried it in a private browsing session, clearing cookies and cache, and it still doesn't show up in one column.

Thanks!

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

  • Posts: 85609
  • Thank you received: 14016
  • MODERATOR
1 month 3 weeks ago #370936

Hi,

Regarding the category filter not showing products from subcategories: this is the expected behavior. When you select a category like "Belleza y Bienestar" in the filter, it only displays products that are directly assigned to that specific category. Products assigned only to its subcategories will not appear.

The "Including sub categories" setting on the filter configuration controls which subcategories are shown as filter options, not whether clicking a parent category also searches inside its children.

To get the behavior you want, you have two options:
1. Assign your products to both the subcategory AND the parent category "Belleza y Bienestar". You can do this easily with a mass action: create a mass action with a filter on the category to select all products in the subcategories of "Belleza y Bienestar", then use an "Add to category" action to also add them to the parent category.
2. Display the subcategories themselves as filter options instead of the parent. In the filter configuration, set the parent category to "Belleza y Bienestar" so that its children (the subcategories) appear as individual checkboxes. Then when a customer clicks a subcategory, it will show the products directly assigned to it.

Regarding the "Number of columns" showing 2 columns instead of 1: the "Number of columns" setting in the module defines the maximum number of columns for the filter layout. However, each individual filter also has its own "Column width" setting in its options (when you edit the filter in Components > HikaShop > Display > Filters). Check if your filters have a column width smaller than the maximum, as that would allow multiple filters to appear side by side. Also, your template CSS might be overriding the inline width styling. You can check this by inspecting the filter element in your browser's developer tools to see if any CSS rule is changing the width.

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

  • Posts: 67
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 month 2 weeks ago #371029

Hi

Perfect, I understand your explanation regarding the filters, but with the options you gave me, I'm still stuck on the result I expect.

If I use option 1, which you suggested, bulk actions, when I click on the "Beauty and Wellness" filter, the filter doesn't show me the subcategories of "Beauty and Wellness." Although it shows me all the products in the subcategories, they're all mixed up, making it very difficult for the user to find the product they're looking for. For example, if they're looking for makeup, they have to search through perfumes, creams, etc., to see if they can find makeup. If I visit any e-commerce site online, the filters allow me to navigate through the different levels of categories until I find the one I want. Isn't that possible through the settings?

On the other hand, if I use option 2, configuring a subcategory, the filter itself only allows me to choose one category.
For example, I defined a main category -> "Products", then some second and third-level categories: fashion -> women, gourmet -> food, beauty -> makeup, etc. Then, in the filter, I logically configured the main category "Products", but I only see the first-level subcategories (fashion, gourmet, beauty). To see the subcategories of fashion, gourmet, and beauty, I should be able to add them to the filter, but the filter only allows one category to be configured.
This isn't a solution to my problem either.

I also tried having more than one category filter, one per subcategory, but it only displays them.

Do I have any other alternative to achieve what I need?

Thanks

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

  • Posts: 85609
  • Thank you received: 14016
  • MODERATOR
1 month 2 weeks ago #371035

Hi,

The filter module's category filter is designed to filter products by their direct category assignment. It is not designed for hierarchical category navigation where selecting a parent category would also show products from all its subcategories.

For the kind of multi-level browsing you are looking for (click on "Belleza & Bienestar" and see all products from its subcategories), there are better approaches than the filter module:

1. You can create a Joomla menu item of type "HikaShop > Categories listing" pointing to your "Categorias de Producto" category. That will display your 6 subcategories as clickable links. When a customer clicks on one, they will see all products from that subcategory and its children automatically (controlled by the "Sub categories" depth setting in the menu item options).

2. You can use a HikaShop content module configured to display categories. Set it to display the children of your "Categorias de Producto" category, and it will show your 6 subcategories as a visual grid with images. Clicking on a category will take the customer to that category page with all its products and subcategories. You can read more about it here: www.hikashop.com/support/documentation/3...splay-front-end.html

If you absolutely need to use the filter module for this purpose, the only workaround is to assign your products to both their specific subcategory and to the parent category. That way, when a customer filters by the parent category, the products will appear. But this requires maintaining dual category assignments, which is more work.

The following user(s) said Thank You: nmacri

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

  • Posts: 67
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 month 2 weeks ago #371124

Hello

I understand. I've replaced the filter with a categories module, as you suggested. I still have a few questions, but I'll ask them in another post to avoid mixing up the questions. Problem solved.

Thanks

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

Time to create page: 0.074 seconds
Powered by Kunena Forum