Skip to content

Commit 375f173

Browse files
authored
Line Item Price Fix (#517)
The order item price should represent the actual price paid for an item. We were previously setting this value to the original (full) price. The unit price reflects the sale or strikethrough price.
1 parent 295120b commit 375f173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function map(array $item, int $storeId): OrderItem
137137
->setQtyOrdered($quantity)
138138
->setBasePrice($originalPrice)
139139
->setOriginalPrice($originalPrice)
140-
->setPrice($originalPrice)
140+
->setPrice($pricePerUnit)
141141
->setTaxAmount($taxAmount)
142142
->setRowTotal($rowTotal)
143143
->setDiscountAmount($discountAmount)

0 commit comments

Comments
 (0)