1
0
mirror of synced 2024-11-22 04:56:07 +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
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']