Skip to content

Commit

Permalink
Merge pull request #9 from saphaljha/2.2-develop-PR-port-19788
Browse files Browse the repository at this point in the history
[Backport] [Forwardport] Fixed - Shipping issue on PayPal Express magento#14712
  • Loading branch information
saphaljha authored Dec 22, 2018
2 parents 2bf3b78 + 1c88345 commit 450a11c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/code/Magento/Quote/Model/Quote/Address/Total/Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Magento\Quote\Api\Data\AddressInterface;
use Magento\Quote\Model\Quote\Address\FreeShippingInterface;

/**
* Collect totals for shipping.
*/
class Shipping extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal
{
/**
Expand Down Expand Up @@ -111,7 +114,7 @@ public function fetch(\Magento\Quote\Model\Quote $quote, \Magento\Quote\Model\Qu
{
$amount = $total->getShippingAmount();
$shippingDescription = $total->getShippingDescription();
$title = ($amount != 0 && $shippingDescription)
$title = ($shippingDescription)
? __('Shipping & Handling (%1)', $shippingDescription)
: __('Shipping & Handling');

Expand Down Expand Up @@ -227,7 +230,7 @@ private function getAssignmentWeightData(AddressInterface $address, array $items
* @param bool $addressFreeShipping
* @param float $itemWeight
* @param float $itemQty
* @param $freeShipping
* @param bool $freeShipping
* @return float
*/
private function getItemRowWeight(
Expand Down

0 comments on commit 450a11c

Please sign in to comment.