Reputation: 6217
if you go here: http://www.kineticskateboarding.com/product-category/footwear/?orderby=price
You will see that the prices do not get ordered. I don't understand where to look for this specific issue, as it only happens with the prices (High to Low) and (Low to High). There are 2 different types of products, Variable Products and Simple Products, how does Woocommerce grab the price for sorting it in this way? From each variation? Where to look for fixing this myself even?
Thanks all.
Upvotes: 0
Views: 7703
Reputation: 6036
A possible reason you are having an issue is poor Documentation from WooCommerce.
In order to sort by price you need to set
orderBy='meta_value_num'
NOT orderBy='meta_value'
as stated in their docs.
I believe meta_value
treats them as strings so as AAAA
comes before BB
$111.10
comes before $2.00
I came across this answer by submitting an issue with WooCommerce https://github.com/woothemes/woocommerce/issues/10182
Upvotes: 1
Reputation: 59
Check your product variations. WooCommerce sorts it according to the default attribute price. Also verify if you have other plugins that affect product sorting/pricing.
Upvotes: 0