Skip to content

Commit 2bea2a1

Browse files
committed
MAGETWO-44159: Configurable product price in store front doesn't reflect price change from backend
1 parent b37faa3 commit 2bea2a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/DefaultPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ protected function _movePriceDataToIndexTable($entityIds = null)
591591
$select = $connection->select()->from($table, $columns);
592592

593593
if ($entityIds !== null) {
594-
$select->where('entity_id in (?)', $entityIds);
594+
$select->where('entity_id in (?)', count($entityIds) > 0 ? $entityIds : 0);
595595
}
596596

597597
$query = $select->insertFromSelect($this->getIdxTable(), [], false);

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price/Configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function reindex($entityIds = null)
4949
{
5050
if ($this->hasEntity() || !empty($entityIds)) {
5151
if (!empty($entityIds)) {
52-
$allEntityIds = $this->getRelatedProduct($entityIds);
52+
$allEntityIds = $this->getRelatedProducts($entityIds);
5353
$this->prepareFinalPriceDataForType($allEntityIds, null);
5454
} else {
5555
$this->_prepareFinalPriceData($entityIds);
@@ -67,7 +67,7 @@ protected function reindex($entityIds = null)
6767
* @param int[] $entityIds
6868
* @return int[]
6969
*/
70-
private function getRelatedProduct($entityIds)
70+
private function getRelatedProducts($entityIds)
7171
{
7272
$select = $this->getConnection()->select()->union(
7373
[

0 commit comments

Comments
 (0)