trying to understand filters

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
1 month 1 week ago #363425

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.2.23
-- Browser(s) name and version -- : firefox 130.0.1

I have a situation where I have 1 primary category with several subcategories under it. I have Brands. Then I have several other 'attributes' for each product that I would like to use to filter the products. Each 'attribute' has several values, some simply a yes or no. I don't know where to list these 'atributes', --are they subcategories, custom fields, tags, or characteristics? I want to be able to filter via category,brand and 'attributes'. (I put "attributes" in quotes for lack of a better word to indicate that these values differentiate some of the products and we want to be able to filter them).
If there is someone out there who has successfully used filters and can help me navigate through this, I would really appreciate the help.

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

  • Posts: 82683
  • Thank you received: 13335
  • MODERATOR
1 month 1 week ago #363434

Hi,

Yes, you want to create one custom field of the table "product" per attribute via the Display>Custom fields menu. You can use the type "single dropdown" or "multiple dropdown" or "checkbox" or "radio" based on how you want to be able to select the attribute value in each product. These custom fields will have a section "values" where you can enter the possible values.
Then, when you create a filter in the Display>Filters menu, you can select the "apply on" to "custom field" and below select the custom field on which you want the filter to base itself on. It will automatically use the values of the custom field to fill the choices of the filter.
You can read more about custom fields and filters here:
www.hikashop.com/support/documentation/4...shop-field-form.html
www.hikashop.com/support/documentation/1...-filter-listing.html

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
1 month 6 days ago #363445

Thank you for your response. I set up the custom fields as you suggested. Some are single dropdown and some are Boolean. I created 3 filters, 1 boolean and 2 single dropdown. I selected the category, including sub categories, products (although I am not sure I need to do this), added values and selected Yes for any front end display.
When I created the Filter module, position Sidebar, show on all pages, the only place it shows up is on the product detail page. And it only shows one filter, and when you click on it it goes to the product category page.
What am I doing wrong!!

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

  • Posts: 82683
  • Thank you received: 13335
  • MODERATOR
1 month 6 days ago #363448

Hi,

You should leave the categories and products settings empty unless you want to restrict the custom field to only some products or only some categories. And no need to set them both.

We would need screenshots of the settings of:
- the module
- the filter
- the custom field
That should allow us to tell you what to do.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
1 month 6 days ago #363454

I am attaching screenshots of:
custom field example
filter example -note, when I tried to add values to this and save, the values disappeared
filter module (using Yootheme Pro template)
product example
product detail page
product listing menu item
Thank you for looking at this.

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

  • Posts: 82683
  • Thank you received: 13335
  • MODERATOR
1 month 6 days ago #363455

Hi,

So, a few things:
- The fact that you can't add values to the filter is normal. The filter automatically takes the values of the custom field. The values there can be used for other types of filters. For example, if you configure a filter on a custom field of the type "text" where you enter numbers in each product, you can enter values there so that the filter will display the choices as ranges. For now, you don't need to bother with this.
- On the listing of products, I can see that the values of the custom fields are displayed. You probably don't want that. In that case, you want to turn off the "front-end listing" display setting of your custom fields.
- The fact that the filters display at the bottom of the product details page is probably because you've selected the filter module in the "modules under the product page" setting of the HikaShop configuration. You want to remove that as you're already displaying the filter on the left sidebar.
- Since you've selected the Cards category in your filter, the filter won't appear on the frontend on any page where the main area isn't displaying the products of that category. So, if you're displaying a listing of all the products under the main category, the filter won't appear on the listing. If you want it to appear there, you need to remove that category restriction.
- In the filter module, you've activated the "force redirect" setting. This means that when you use a filter of the module, the system will redirect you to the menu with the id entered in the "menu" setting above so that the filter will be done on the products displayed by default by this menu item. So, usually, you want to enter the id of a menu item configured to list all your products in that "menu" setting (and you don't want to restrict your filter to some categories).

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
1 month 5 days ago #363481

THANK YOU SOOOO MUCH! You really helped. I think I understood everything you explained. I made the changes and it seems to be functioning the way I expected it to.
I may have additional questions as we proceed. I hope I can continue to count on you for help.
Thank you again.
Ellen

The following user(s) said Thank You: nicolas

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
1 month 5 days ago #363486

Is there a way to reset the filters? I am finding that when I click on a radio button and click filter button, another radio button gets checked even though I didn't ask for that filter. And the results are only the ones meeting the criteria of my original one radio button. If I try clicking the red X on the radio button I DON'T want, to reset the filter, and then click filter, it again shows the other one clicked as well. If I try x ing out both, as soon as I do one, the other shows clicked. I cant reset the filter to neutral at all.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
1 month 5 days ago #363489

I figured this out!

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

  • Posts: 82683
  • Thank you received: 13335
  • MODERATOR
1 month 5 days ago #363488

Hi,

In the settings of your filter module, you have an option to display the reset button.
Also, you can change the way the filter behaves once something is selected in it with the "deletable filter" setting.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum