Skip to content

Commit

Permalink
Merge pull request magento#3298 from magento-tango/MAGETWO-69650
Browse files Browse the repository at this point in the history
MAGETWO-69650: Simple product with flat tables enabled not showing correct price in shopping cart
  • Loading branch information
dhorytskyi authored Oct 16, 2018
2 parents c9d1bec + f2de86f commit 448770c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ protected function _updateTemporaryTableByStoreValues(
if (!empty($changedIds)) {
$select->where($this->_connection->quoteInto('et.entity_id IN (?)', $changedIds));
}

/*
* According to \Magento\Framework\DB\SelectRendererInterface select rendering may be updated
* so we need to trigger select renderer for correct update
*/
$select->assemble();
$sql = $select->crossUpdateFromSelect(['et' => $temporaryFlatTableName]);
$this->_connection->query($sql);
}
Expand All @@ -355,6 +361,7 @@ protected function _updateTemporaryTableByStoreValues(
if (!empty($changedIds)) {
$select->where($this->_connection->quoteInto('et.entity_id IN (?)', $changedIds));
}
$select->assemble();
$sql = $select->crossUpdateFromSelect(['et' => $temporaryFlatTableName]);
$this->_connection->query($sql);
}
Expand Down

0 comments on commit 448770c

Please sign in to comment.