Skip to content

Commit 6a95dba

Browse files
committed
MAGETWO-87872: Free Shipping Cart Price Rule not working when UPS shipping method is enabled
1 parent 32892a4 commit 6a95dba

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/code/Magento/OfflineShipping/Model/SalesRule/Calculator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function processFreeShipping(\Magento\Quote\Model\Quote\Item\AbstractItem
4949

5050
case Rule::FREE_SHIPPING_ADDRESS:
5151
$address->setFreeShipping(true);
52+
$item->setFreeShipping(true);
5253
break;
5354
}
5455
if ($rule->getStopRulesProcessing()) {

app/code/Magento/Shipping/Model/Carrier/AbstractCarrier.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ protected function _updateFreeMethodQuote($request)
436436
}
437437
}
438438
}
439+
} else {
440+
/**
441+
* if we can apply free shipping for all order we should force price
442+
* to $0.00 for shipping with out sending second request to carrier
443+
*/
444+
$price = 0;
439445
}
440446

441447
/**

0 commit comments

Comments
 (0)