fix price
This commit is contained in:
parent
06ddf9a807
commit
fc1e208b08
@ -242,7 +242,7 @@ class Exchange
|
|||||||
//add items in quote
|
//add items in quote
|
||||||
foreach ($ditems as $id =>$item) {
|
foreach ($ditems as $id =>$item) {
|
||||||
$product = $productRepository->getById($id,false, $store->getId(), false);
|
$product = $productRepository->getById($id,false, $store->getId(), false);
|
||||||
$product->setPrice($item['initialPrice']);
|
$product->setPrice($item['price_item']);
|
||||||
$quote->addProduct(
|
$quote->addProduct(
|
||||||
$product,
|
$product,
|
||||||
(int)$item['quantity']
|
(int)$item['quantity']
|
||||||
@ -411,7 +411,7 @@ class Exchange
|
|||||||
//add items in quote
|
//add items in quote
|
||||||
foreach ($ditems as $id => $item) {
|
foreach ($ditems as $id => $item) {
|
||||||
$product = $productRepository->getById($id,false, $store->getId(), false);
|
$product = $productRepository->getById($id,false, $store->getId(), false);
|
||||||
$product->setPrice($item['initialPrice']);
|
$product->setPrice($item['price_item']);
|
||||||
$quote->addProduct(
|
$quote->addProduct(
|
||||||
$product,
|
$product,
|
||||||
(int)$item['quantity']
|
(int)$item['quantity']
|
||||||
|
Loading…
Reference in New Issue
Block a user