Forums Forums Search & Filter Pro Sorting Filter Results By Price

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #122472

    Hi there,

    I’ve set Woocommerce to sort my products by price from highest to lowest. However I’d ike it so that when someone uses the filter, the results are sorted from lowest to highest price. I thought I’d found the setting by editing my filter and clicking on the ‘Posts’ tab at the top and then setting it to the following:

    Default order: Meta Value – Ascending

    Choose Meta Key: _regular_price – Numerical

    However this doesn’t work. Any ideas what I’m doing wrong?

    Cheers!
    John

    Trevor
    #122588

    Is that meta key made with ACF? If it is, there will be another in the list without the preceding underscore. Use that instead.

    Anonymous
    #124166

    Hi Trevor,

    I am using ACF plugin but the Price field is just the main WooCommerce “Regular Price” field. So I thought the meta key for this would be “_regular_price” – however the settings mentioned in my original post don’t work :-/

    Cheers,
    John

    Trevor
    #124178
    This reply has been marked as private.
    Anonymous
    #124187
    This reply has been marked as private.
    Trevor
    #124215

    The first issue that I can see is that the Ajax Container is set to #main, but your theme uses #content, so that needs changing, which I have just done.

    Anonymous
    #124380

    Thanks Trevor. It’s still not working for me though. Any other ideas? 🙂

    Trevor
    #124395
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)