Skip to content

Commit 0525243

Browse files
committed
MAGETWO-91798: Implement GroupedProduct Price indexer
1 parent 92890f9 commit 0525243

File tree

1 file changed

+0
-12
lines changed
  • app/code/Magento/GroupedProduct/Model/ResourceModel/Product/Indexer/Price

1 file changed

+0
-12
lines changed

app/code/Magento/GroupedProduct/Model/ResourceModel/Product/Indexer/Price/Grouped.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
use Magento\Catalog\Model\Indexer\Product\Price\TableMaintainer;
1616
use Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\IndexTableStructureFactory;
1717
use Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\IndexTableStructure;
18-
use Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\PriceModifierInterface;
1918
use Magento\GroupedProduct\Model\ResourceModel\Product\Link;
20-
use Magento\Store\Model\Indexer\WebsiteDimensionProvider;
21-
use Magento\Customer\Model\Indexer\CustomerGroupDimensionProvider;
2219

2320
/**
2421
* Calculate minimal and maximal prices for Grouped products
@@ -149,15 +146,6 @@ protected function _prepareGroupedProductPriceDataSelect($dimensions, $entityIds
149146
$select->where('l.product_id IN(?)', $entityIds);
150147
}
151148

152-
foreach ($dimensions as $dimension) {
153-
if ($dimension->getName() === WebsiteDimensionProvider::DIMENSION_NAME) {
154-
$select->where('i.website_id = ?', $dimension->getValue());
155-
}
156-
if ($dimension->getName() === CustomerGroupDimensionProvider::DIMENSION_NAME) {
157-
$select->where('i.customer_group_id = ?', $dimension->getValue());
158-
}
159-
}
160-
161149
return $select;
162150
}
163151

0 commit comments

Comments
 (0)