[-] CORE : Cart rules not ordered by priority for PaymentModule
This commit is contained in:
@@ -340,6 +340,7 @@ class CartCore extends ObjectModel
|
|||||||
'.($filter == CartRule::FILTER_ACTION_SHIPPING ? 'AND free_shipping = 1' : '').'
|
'.($filter == CartRule::FILTER_ACTION_SHIPPING ? 'AND free_shipping = 1' : '').'
|
||||||
'.($filter == CartRule::FILTER_ACTION_GIFT ? 'AND gift_product != 0' : '').'
|
'.($filter == CartRule::FILTER_ACTION_GIFT ? 'AND gift_product != 0' : '').'
|
||||||
'.($filter == CartRule::FILTER_ACTION_REDUCTION ? 'AND (reduction_percent != 0 OR reduction_amount != 0)' : '')
|
'.($filter == CartRule::FILTER_ACTION_REDUCTION ? 'AND (reduction_percent != 0 OR reduction_amount != 0)' : '')
|
||||||
|
.' ORDER by cr.priority ASC'
|
||||||
);
|
);
|
||||||
Cache::store($cache_key, $result);
|
Cache::store($cache_key, $result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user