Skip to content

Commit

Permalink
Select only unique products on reindex
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPetr committed Nov 9, 2017
1 parent 7f9fd1f commit c717a04
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public function getProductCollectionQuery($storeId, $productIds = null, $only_vi

$products = $products->setStoreId($storeId);
$products = $products->addStoreFilter($storeId);
$products = $products->distinct(true);

if ($productIds && count($productIds) > 0) {
$products = $products->addAttributeToFilter('entity_id', array('in' => $productIds));
Expand Down

0 comments on commit c717a04

Please sign in to comment.