woothemes/woocommerce — pull request #1648 by lordldx (2012-10-25 11:10:02+00:00)
Title: Fix in orderby in shortcodes

Hi,

I notices that it was not possible to order by meta fields.
(in my specific case, I wanted to do this
[product_category category="my-category" per_page="100" columns="4" orderby="price" order="desc"] )

but it didn't work.
I saw that the fields "orderby" and "order" were passed straight to WP_Query.
Since wordpress didn't know those fields, it defaulted to orderby date

I now fixed this by detecting these orderby values and convert them to
orderby => "meta_value" (or meta_value_num)
meta_key =>
similar to how it's done in the WC_Query class

I tested this and it seems to work.

Regards,
lordldx