Skip to content

Commit

Permalink
Fixes #62 Correctly add offer ids to identities
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet committed Aug 12, 2021
1 parent f714ade commit a60d10b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Block/Catalog/Product/Retailer/Availability.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ protected function getProduct()
*/
protected function getStoreOffers()
{
$storeOffers = [];

if ($this->storeOffers === null) {
$storeOffers = [];

$offerByRetailer = [];
foreach ($this->offerManagement->getProductOffers($this->getProduct()->getId()) as $offer) {
$offerByRetailer[(int) $offer->getSellerId()] = $offer;
Expand Down Expand Up @@ -192,9 +192,9 @@ protected function getStoreOffers()

$storeOffers[] = $offer;
}
}

$this->storeOffers = $storeOffers;
$this->storeOffers = $storeOffers;
}

return $this->storeOffers;
}
Expand Down

0 comments on commit a60d10b

Please sign in to comment.