Skip to content

Commit

Permalink
main variants are also exported to Luigi's Box
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Apr 22, 2024
1 parent e6075e4 commit 1947bcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Model/FeedItem/LuigisBoxProductFeedItemFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public function getItems(DomainConfig $domainConfig, ?int $lastSeekId, int $maxR

foreach ($products as $product) {
if ($product->isMainVariant()) {
yield $this->luigisBoxProductFeedItemFactory->create($product, $domainConfig);

$variants = $this->luigisBoxProductRepository->getAllVariantsByMainVariantId($product, $domainConfig->getId(), $pricingGroup);
$this->productUrlsBatchLoader->loadForProducts($variants, $domainConfig);

Expand Down

0 comments on commit 1947bcf

Please sign in to comment.