SOLVED: How to Sort Products by Price

I’m using a Bricks Filter Select element with the following sort options:

  • Price: Low to High

  • Price: High to Low

I’ve tried both:

  • WooCommerce Price

  • Post Meta Numeric Value with _price as the meta key

However, neither option sorts variable products correctly. The product order seems inconsistent and doesn’t match the actual displayed prices.

What’s interesting is that the default WooCommerce archive sorting (“Sort by price: low to high” and “high to low”) works perfectly on the shop page, so I assume WooCommerce is using its own logic or lookup table for variable product pricing.

Has anyone encountered this issue with Bricks filters? Is there a recommended way to sort variable products by price using a Bricks Filter Select element so that it matches WooCommerce’s default archive sorting?

Any suggestions would be appreciated. Thanks!

Hi Seniru,
I can’t replicate the issue. Check the query settings and enable “is main query” and/or “Disable query merge” and see if it makes a difference.

1 Like

I just tested it and all works fine at this end. This is what I have.

1 Like

Thanks all for the support :raising_hands:
Looks like the issue was on my side — I was testing with dummy products that had identical prices, which caused the confusion. After testing with real data, the sorting works fine as expected. Appreciated!

1 Like

Good to hear, glad you sorted it out. =]

1 Like