Filtering on custom fields is not working

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #296802

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11
-- PHP version -- : 7.1.18
-- Browser(s) name and version -- : Chrome

Hi,

I have a problem with the functionality of filtering of my products. I have setup dynamic filtering on my custom fields. Unfortunately the filter is not working. I onle have the option in the pulldown 'all'. So the content of the custom fields is not showing. I have tried a lot to fix it and search the web and this forum to find a solution, but no.....

Any idea how to get this working?

regrads,
Joost

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 3 months ago #296816

Hi,

The problem is probably with your custom field. The filters will use the values that you entered in the "values" area of the custom field.
This is only available if the custom field is of the type "radio", or "sinmple checkbox", etc.
If your custom field is of the type "text" or "textarea", etc there are no values defined in the custom field.
Also, another thing to check is the "dynamic display" setting of the filter. If that option is activated, the system will only use the values of the custom field which have been selected in the products of the listing below.

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #296843

Hi Nicolas,

Thanks for the quick feedback. Unfortunately isn't one of the mentioned issues the solution. All the custom fields are of the type 'radio'. And the filters are set on 'dynamic display'. But still the filters won't work. Any idea what it can be?

regards,
Joost

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 3 months ago #296844

Hello,

Would it be possible to have a screenshot of one of your custom field configuration and the configuration of the according filter ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #296877

Hi, Sure, no problem. See the attached screen shots.

regards,
Joost

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 3 months ago #296886

Hello,

Your radio custom field do not have values ; I suppose that the reason why the filter cannot list the possibles values since it access that information from the custom field configuration.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: joostbloom

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #296912

Hi Jerome,

Problem solved! I thought the data was taken automaticaly/dynamically.

regards and thanks for the great and quick support.

Joost

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

  • Posts: 5
  • Thank you received: 0
6 years 2 months ago #298145

just so i'm clear. are you saying that filtering by custom fields (text) only works with values entered directly into the filter? It won't work with actual text entered in the field from the back end?

if so, is that functionality in the works? it would be immensely helpful.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #298148

Hi,

No. If it's a text custom field, you can only use a text filter on it.
In that case, the users will see a text input for the filter and it will search among the values entered in the custom field in the products.
If you want a dropdown/radio/checkbox filter, then you need to use a dropdown/radio/checkbox custom field.
The only exception is if in your text custom field, you're entering numbers. In that case, you can enter steps in your dropdown/radio/checkbox filter and the filter will display selectable ranges based on these steps to be able to search among the values in the custom field.

There is no functionality in the works for now to be able to generate the values of a dropdown/radio/checkbox filter from the values entered in a text custom field.
We actually want to redo the filters system from the ground up this year or next year, so we're waiting before implementing new features in that old filter system so that we can directly add them once the new system will be available.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum