Filtering WooCommerce products by attributes
Step 1 – The first thing you should do is to add products attributes in Products > Attributes in the WP Dashboard.
Also, it is necessary to specify the terms of each attribute.
Step 2 – Then, you need to set the attributes in WooCommerce products. Go to Products > All Products and click the Edit option under each product.
Step 3 – When the Edit product window opens, navigate to the Attributes tab and apply the attributes and terms to the product. Don’t forget to save the updates.
Step 4 – Now let’s create a new filter in SmartFilters > Add New. Specify the filter label, select the filter type and in the Data Source option choose “Taxonomies”. In the appeared field, Taxonomy, select the certain product attribute. Save the settings clicking the Publish button.
Step 5 – Open the Shop page template in Elementor editor and add the specific JetSmartFilters widget in the appropriate section. On the left side, you will see the settings block, where you have to determine the created filter in the Select filter field and select the listing or archive to which you want to apply the filter in the This filter for field. Moreover, there are a lot of different settings, which will help to customize the elements according to your needs and vision.
Step 6 – It’s a good time to view how it works on the Shop page.
Well done! Now you know the way to filter WooCommerce products by their attributes with the help of JetSmartFilters plugin.