PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.17
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.17
1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 All 180 releases
← All changes | app/Analytics/Services/OrderService.php +3 -2 1.4.11.4.17 View file →
@@ -100,10 +100,11 @@
100 100 * @return array Query args for OrderQuery::get_order_list().
101 101 */
102 102 private static function build_table_query_args( array $args, int $limit, int $page ): array {
103 103 $orderby_map = array(
104 - 'revenue' => 'order_total',
105 - 'date' => 'order_date',
104 + 'revenue' => 'order_total',
105 + 'date' => 'order_date',
106 + 'quantity' => 'quantity',
106 107 );
107 108 $orderby = $orderby_map[ $args['orderby'] ?? 'revenue' ] ?? 'order_total';
108 109 $order = 'desc';
109 110