diff --git a/src/Model/History/Exchange.php b/src/Model/History/Exchange.php index 7a2d25d..7f71b35 100644 --- a/src/Model/History/Exchange.php +++ b/src/Model/History/Exchange.php @@ -242,7 +242,7 @@ class Exchange //add items in quote foreach ($ditems as $id =>$item) { $product = $productRepository->getById($id,false, $store->getId(), false); - $product->setPrice($item['initialPrice']); + $product->setPrice($item['price_item']); $quote->addProduct( $product, (int)$item['quantity'] @@ -411,7 +411,7 @@ class Exchange //add items in quote foreach ($ditems as $id => $item) { $product = $productRepository->getById($id,false, $store->getId(), false); - $product->setPrice($item['initialPrice']); + $product->setPrice($item['price_item']); $quote->addProduct( $product, (int)$item['quantity']