Forums Forums Search & Filter Pro how to show woocommerce price in the filter

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #93955

    I am using woocommerce and I would like to have ‘price’ as a filter option on the search.
    I can’t find any woocommerce options in the ‘Available Fields’ for the Search Form UI.
    Where can I find the woocommerce price to add it to the search?

    Trevor
    #93958
    This reply has been marked as private.
    Anonymous
    #94597
    This reply has been marked as private.
    Anonymous
    #94599
    This reply has been marked as private.
    Trevor
    #94820
    This reply has been marked as private.
    Anonymous
    #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
    #95129

    That 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.

Viewing 7 posts - 1 through 7 (of 7 total)