From fc1e208b08e20396fc9cf65bbae6fd48451e55ed Mon Sep 17 00:00:00 2001 From: gorokh Date: Tue, 1 Oct 2019 14:40:42 +0300 Subject: [PATCH] fix price --- src/Model/History/Exchange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']