[-] FO: Fix #PSCFV-6159 order way of best sales
This commit is contained in:
@@ -68,7 +68,7 @@ class ProductSaleCore
|
||||
|
||||
$final_order_by = $order_by;
|
||||
if (empty($order_by) || $order_by == 'position' || $order_by = 'price') $order_by = 'sales';
|
||||
if (empty($order_way)) $order_way = 'DESC';
|
||||
if (empty($order_way) || $order_by == 'sales') $order_way = 'DESC';
|
||||
|
||||
$groups = FrontController::getCurrentCustomerGroups();
|
||||
$sql_groups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1');
|
||||
|
||||
Reference in New Issue
Block a user