Skip to content

Commit d3c82f0

Browse files
committed
B2B-2453: GraphQL: Bundle Product Options Are Returned When in Different Website
- Add website filter
1 parent 1c97766 commit d3c82f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/VisibilityStatusProcessor.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public function process(
3737
): Collection {
3838
$collection->joinAttribute('status', 'catalog_product/status', 'entity_id', null, 'inner');
3939
$collection->joinAttribute('visibility', 'catalog_product/visibility', 'entity_id', null, 'inner');
40+
if ($context) {
41+
$store = $context->getExtensionAttributes()->getStore();
42+
if ($store) {
43+
$websiteId = $store->getWebsiteId();
44+
$collection->addWebsiteFilter([$websiteId]);
45+
}
46+
}
4047

4148
return $collection;
4249
}

0 commit comments

Comments
 (0)