[-] BO : fixed bug #PSFV-751 - Carrier - Rule of free shipping does not work
This commit is contained in:
@@ -2344,6 +2344,9 @@ class CartCore extends ObjectModel
|
||||
$free_fees_price = 0;
|
||||
if (isset($configuration['PS_SHIPPING_FREE_PRICE']))
|
||||
$free_fees_price = Tools::convertPrice((float)$configuration['PS_SHIPPING_FREE_PRICE'], Currency::getCurrencyInstance((int)$this->id_currency));
|
||||
$orderTotalwithDiscounts = $this->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING);
|
||||
if ($orderTotalwithDiscounts >= (float)($free_fees_price) && (float)($free_fees_price) > 0)
|
||||
return $shipping_cost;
|
||||
|
||||
if (isset($configuration['PS_SHIPPING_FREE_WEIGHT'])
|
||||
&& $this->getTotalWeight() >= (float)$configuration['PS_SHIPPING_FREE_WEIGHT']
|
||||
|
||||
Reference in New Issue
Block a user