Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
feature/evr-299-magento - set storeId to get correct product URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ade committed Jul 3, 2020
1 parent fd2a73a commit 973ec2a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ private function handleSearch($searchQuery)
);
$collection->setPageSize(10)->setCurPage(1);
$products = $collection->load();
$store = Mage::app()->getDefaultStoreView();
$storeId = $store->getStoreId();

foreach ($products as $product) {
$product->setStoreId($storeId);
$this->_prepareProductForResponse($product);
}

Expand Down

0 comments on commit 973ec2a

Please sign in to comment.