Get most sold products with minimum price
-
I have used this code to get the most sold products:
$top_selling_products = wc_get_products( array( 'limit' => '4', 'meta_key' => 'total_sales', 'return' => 'ids', 'orderby' => array( 'meta_value_num' => 'DESC', 'title' => 'ASC' ), ) );
How can I limit products by price so that it would show only products that cost at least 30 dollars?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get most sold products with minimum price’ is closed to new replies.