1
0
mirror of synced 2024-11-21 20:46:06 +03:00

fix price

This commit is contained in:
gorokh 2019-10-01 14:40:42 +03:00
parent 06ddf9a807
commit fc1e208b08

View File

@ -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']