Question

I have modified the advance search form and added only my custom attributes in the form,

I have created the Select input with the exact same values from product attributes like:

<select name="make" id="make">
   <option value="">Please Select...</option>
   <option value="passend für Audi / Seat">passend für Audi / Seat</option>
   <option value="passend für Audi / VW">passend für Audi / VW</option>
   <option value="passend für VM">passend für VM</option>
</select>

In the admin i have the value for Make attribute like this, it is same as in SELECT input on frontend: enter image description here

And on frontend where i have created the Select input has the same value to search:

enter image description here

But now when i try to search the products with this attribute in advance search it is not showing any products, as the product is assigned the attribute and has correct value.

Other attribute that is "Year" and having the Digits value is working fine with the same form.

enter image description here

Is there any settings or configuration i am missing for attributes or search?

I have cleared all the caches, Run the Indexer as well.

Any help will be appreciated.

thanks!

Was it helpful?

Solution

The correct way is to set the attribute to be used in search as well as to make it visible in advanced search by editing the attribute properties in admin -> attribute edit page -> Storefront properties -> Use in Search = yes & Visible in Advanced Search = yes

Visible in Advanced Search — Gives shoppers the ability to enter search criteria through a form.

and not adding the dropdown manually in the advanced search form.

You basically want Magento to do the trick for you and to have the attribute values indexed in your search engine so that you have results when using it in the advanced search form.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top