Skip to content

Commit

Permalink
Added the loading of variant images to the ProductSearch class
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Sep 4, 2023
1 parent e171ea7 commit 873f4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundation/Search/ProductSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function withInactiveProducts(): self
public function withImages(): self
{
$this->productQuery->with('media');
$this->masterProductQuery->with('media');
$this->masterProductQuery->with(['media', 'variants.media']);

return $this;
}
Expand Down

0 comments on commit 873f4ba

Please sign in to comment.