Skip to content

Commit b4bcdc1

Browse files
Merge remote-tracking branch '37578/asym-paypal' into comm_jul
2 parents a413707 + 2bfd915 commit b4bcdc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Paypal/Model/Cart.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ protected function _importItemsFromSalesModel()
120120
continue;
121121
}
122122

123+
$isChildItem = $item->getOriginalItem()->getHasChildren();
124+
$itemName = $isChildItem ? $item->getName() . ' - ' . $item->getOriginalItem()->getSku() : $item->getName();
123125
$amount = $item->getPrice();
124126
$qty = $item->getQty();
125127

@@ -141,7 +143,7 @@ protected function _importItemsFromSalesModel()
141143
}
142144

143145
$this->_salesModelItems[] = $this->_createItemFromData(
144-
$item->getName() . $subAggregatedLabel,
146+
$itemName . $subAggregatedLabel,
145147
$qty,
146148
$amount
147149
);

0 commit comments

Comments
 (0)