Skip to content

Commit

Permalink
ENGCOM-3997: Fixed - Shipping issue on PayPal Express #14712 #19655
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Jan 31, 2019
2 parents 9a0806d + d3b9ddd commit 7b1855c
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 7b1855c

Please sign in to comment.