Skip to content

Commit e9d8fa0

Browse files
author
Valeriy Nayda
committed
MAGETWO-57023: [GitHub] Sorting configurable products by price doesn't work when simple product has special_price #4778
1 parent 8685816 commit e9d8fa0

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,12 @@ protected function prepareFinalPriceDataForType($entityIds, $type)
247247
}
248248

249249
/**
250-
* @param int|array $entityIds the entity ids limitation
251-
* @param string|null $type product type, all if null
250+
* Forms Select for collecting price related data for final price index table
251+
* Next types of prices took into account: default, special, tier price
252+
* Moved to protected for possible reusing
253+
*
254+
* @param int|array $entityIds Ids for filtering output result
255+
* @param string|null $type Type for filtering output result by specified product type (all if null)
252256
* @return \Magento\Framework\DB\Select
253257
* @throws \Magento\Framework\Exception\LocalizedException
254258
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)

0 commit comments

Comments
 (0)