Create a custom search view. Could not find Woocommerce fields such as price or product review to use it as search filters.
Is there any documentation that you are following?
shoppingmp.com
How can I add Woocommerce fields as search filters and WCFM fields too if possible?
Hi,
I have already followed these pages to create a custom search view. My question is very specific around how can I add fields from Woocommerce and or WCFM that are not listed when I am adding a new filter field as in previous screenshot message attachment?
Fields like Woocommerce product price for example are not available to be used as a filter so I can enable the end user to limit the search to a price range or minimum or maximum price. This is one example and my question is how can I access the Woocommerce fields for this purpose: Use it as filters.
For the Woocommerce fields that are not showing up can be enabled by going to Toolset -> Settings -> Frontend and under the hidden custom field settings you should be able to enable the fields that are hidden.
Once you have enabled the fields you can then add filters for these specific fields.See Screenshot
Hi,
Thank you for the information. I have made some of the fields now visible. How can I use one of the Woocommerce fields like _price be a filter with range of filter prices? For example like showing a slider where the user can pick a range of product prices to show and exclude products outside the selected price range?
Hi,
Also some oh the fields are not in that list. For example how can I use the author location to filter by Woocommerce vendor city/state/ or country? I am looking to make the product search screen mote rich in terms of filters.
I am also using WCFM which is compatible with Toolset. Looking to access relevant information not just as custom fields as custom fields option does not 'understand' the nature of the field. If I have the ability of adding a Woocommerce filter about 'products' for example I should be able to select more relevant attributes of products. I would also like to select WCFM vendors as a filter but I am not sure how to do that.
Thanks,
How can I use one of the Woocommerce fields like _price be a filter with range of filter prices?
Currently the only way you can do a price slider is with the use of custom code. However you can use the Between comparison option when you're adding the field so that it will generate a min and max price filter field. From there you should be able to use some custom code to create the slider.
I know there has been talks to implement something like this for woocommerce so that users can use a slider for the price but i'm not sure how far along this is.
For example how can I use the author location to filter by Woocommerce vendor city/state/ or country?
Using the author's location, I would assume that you are referring to users that are visiting the page. There is a location filter but this is strictly used with our Maps plugin so unless there is an address on the product you won't be able to do this.
I would also like to select WCFM vendors as a filter but I am not sure how to do that.
This won't be possible to do because you can only filter by the default post attributes and custom fields.