Skip to content

Commit

Permalink
Merge pull request #1231 from solverat/oie_fix_20
Browse files Browse the repository at this point in the history
[TRACKING] use single item price in order item extractor
  • Loading branch information
dpfaffenbauer authored Jan 14, 2020
2 parents 0bede80 + 655b0fa commit 87eeb84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function updateMetadata($object, $data = []): array
'sku' => $product instanceof ProductInterface ? $product->getSku() : '',
'name' => $product instanceof PurchasableInterface ? $product->getName() : '',
'category' => (is_array($categories) && count($categories) > 0) ? $categories[0]->getName() : '',
'price' => $object->getTotal() / 100,
'price' => $object->getItemPrice() / 100,
'quantity' => $object->getQuantity(),
'currency' => $proposal ? $proposal->getCurrency()->getIsoCode() : '',
]);
Expand Down

0 comments on commit 87eeb84

Please sign in to comment.