Skip to content

Commit fa932df

Browse files
authored
Add store id to order item #38 (#493)
1 parent bd0b30c commit fa932df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Meta/Sales/Model/Mapper/OrderItemMapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public function map(array $item, int $storeId): OrderItem
142142
->setRowTotal($rowTotal)
143143
->setDiscountAmount($discountAmount)
144144
->setBaseDiscountAmount($discountAmount)
145-
->setProductType($product->getTypeId());
145+
->setProductType($product->getTypeId())
146+
->setStoreId($storeId);
146147

147148
if ($rowTotal != 0) {
148149
$orderItem->setTaxPercent(round(($taxAmount / $rowTotal) * 100, 2));

0 commit comments

Comments
 (0)