In this article we cover an issue with not working WooCommerce products search based on attributes values.
In this article we cover an issue with not working WooCommerce product search based on attribute values.
With Advanced Woo Search PRO, it is possible to search for products via their variations' values.
But sometimes, you might face an issue where search based on product attributes doesn't work. There are several reasons for this, and below we’ll cover the most common ones.
First of all, check your plugin index-related options.
If the issue persists, follow these steps to verify your search settings:
Lastly, check your product attributes themselves.
WooCommerce has two main types of product attributes - standard attributes, which are visible inside the Products → Attributes page, and custom attributes.
Steps 1 and 2 above were related to standard attributes.
But what about custom attributes? These are special attributes you can add to any product without creating a global version. They are similar to custom fields but used as attributes.
It’s easy to confuse custom attributes with standard ones, so if the previous steps haven’t helped, you might be using custom attributes instead.
In this case, you can also enable search for products via custom attributes.
Standard attributes are created globally under Products → Attributes, while custom attributes are added directly to individual products and are not globally defined.
Yes, you can create search result filters based on different parameters, including filters based on product attributes. More details - Filters For Search Results.
No. You need to reindex the plugin table only after the first plugin activation or after changing any options inside the Performance settings page. In other cases, you don’t need to manually reindex the plugin table - all product changes are synchronized automatically.
Yes, it is possible. More details can be found in this article: Attributes terms search.