Skip to content

Commit d777bad

Browse files
Aasim Goriyaaasim110
authored andcommitted
Added: SKU with configurable, group, bundle product Title
1 parent 35e8e43 commit d777bad

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)