Skip to content

Commit

Permalink
Merge pull request #3316 from vahonc/3302-elasticsuite-catalog-produc…
Browse files Browse the repository at this point in the history
…ts-preview-on-multi-store-2.10-fix

[Catalog] Fix #3302, improving products preview on multi-store setup
  • Loading branch information
romainruaud authored Jul 10, 2024
2 parents b652d76 + f6cfd76 commit 0cfaadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module-elasticsuite-virtual-category/Model/Preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function prepareProductCollection(Collection $collection) : Collection
$directionFallback = $sortBy !== 'position' ? Collection::SORT_ORDER_ASC : Collection::SORT_ORDER_DESC;

$collection->setOrder($sortBy, $this->request->getParam('sort_direction', $directionFallback));
$collection->addPriceData(self::DEFAULT_CUSTOMER_GROUP_ID, $this->category->getStoreId());
$collection->addPriceData(self::DEFAULT_CUSTOMER_GROUP_ID, $this->category->getStore()->getWebsiteId());

return $collection;
}
Expand Down

0 comments on commit 0cfaadb

Please sign in to comment.