Skip to content

Commit

Permalink
Merge pull request #131 from riha112/3655
Browse files Browse the repository at this point in the history
[3655]Don't fetch disable variants on PLP
  • Loading branch information
carinadues authored Nov 1, 2021
2 parents 1a97bc2 + 0f50446 commit 7b22fd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Model/Variant/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,11 @@ protected function fetchPlp($info) : array {

/** @var Product $product */
foreach ($products as $product) {
// Skip disabled products
if ($product->isDisabled()) {
continue;
}

$productId = $product->getId();
$productIds[] = $productId;

Expand Down

0 comments on commit 7b22fd7

Please sign in to comment.