Forums › Forums › Search & Filter Pro › how to show woocommerce price in the filter
- This topic has 6 replies, 2 voices, and was last updated 9 years, 1 month ago by
Trevor.
-
Anonymous(Private) March 7, 2017 at 9:41 am #95099
Thanks, that is working for the regular price. But what if something is on sale?
I need the price filter – if the product is on sale to filter for the sale price, and if it isn’t on sale then filter for the regular price.
I tried setting one as the start meta key and one as the end meta key, but it didn’t work.
How should I set this up?Trevor(Private) March 7, 2017 at 11:12 am #95129That level of sophistication in the price would be hard to achieve. However ….
If you had ACF installed, you could make code for a calculated field, so that every time you saved the product, it did that logic check and placed the lower price in a field that you would then use for searching. ACF have code snippets for calculated fields.
The problem is that whilst you can edit the query argument in Search and Filter (using our Actions and Filters), it cannot do the individual post by post comparison that you need.
-
AuthorPosts