Dropdown attribute says "Please write at least 3 characters" before displaying options

Hello,

For my website I have a “brand” attribute, dropdown, which has quite a lot of options (500+). Up until now, when I was adding a new listing, the dropdown would show the scrollable list with all attributes as soon as it was clicked.

However, recently I noticed that now, when first clicking on the dropdown, instead of showing me the options there’s a text saying “Please add 3 or more characters” ; consequently, options are not shown until at least three characters are written.

This is quite upsetting and, for my case, kind of ruins the UX. Was this cause by a recent update, or is there some kind of limit to how many attributes can be displayed? Any idea how I can change this to the initial behaviour?

Thanks!

Hey Arthur,

i had the same issue. To fix this:

Change 100 to (for example) 1000000 in this plugin file hivepress/includes/components/class-attribute.php at master · hivepress/hivepress · GitHub

Hope this helps

3 Likes

Hi,

Yes, this feature was implemented in the last update because many users reported that select-type attributes with more than 100 options were slowing down their websites. So now these attributes load dynamically using AJAX to improve performance.

The temporary solution will be the one that Ivan linked. We’ll probably make this feature configurable as an option in settings rather than having it as a default behavior.

Thanks for your understanding and patience.

1 Like

Hey @IvanM ,

Thank you for the quick solution - I tested and it works well :slight_smile:

One question though - won’t this be overwritten again during the next Hivepress update? Can I make it persistent somehow?

Much appreciated!

Hi,

It will be overwritten with the next update, but we’re planning to make this AJAX loading an optional feature rather than a default one, so your functionality shouldn’t be affected after the update.

Hope this helps