Skip to content

Commit

Permalink
fixed Quote Item Prices are NULL in cart related events. magento#18685
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh authored and edenduong committed Jul 23, 2019
1 parent 3f24171 commit e77fc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/Model/Quote/Item/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function prepare(Item $item, DataObject $request, Product $candidate): vo
$item->setData(CartItemInterface::KEY_QTY, 0);
}
$item->addQty($candidate->getCartQty());

$item->setPrice($item->getProduct()->getFinalPrice());
$customPrice = $request->getCustomPrice();
if (!empty($customPrice)) {
$item->setCustomPrice($customPrice);
Expand Down

0 comments on commit e77fc02

Please sign in to comment.