diff --git a/vendor/magento/module-bundle/Pricing/Adjustment/DefaultSelectionPriceListProvider.php b/vendor/magento/module-bundle/Pricing/Adjustment/DefaultSelectionPriceListProvider.php index 297c4659cb877..05ad966b3d898 100644 --- a/vendor/magento/module-bundle/Pricing/Adjustment/DefaultSelectionPriceListProvider.php +++ b/vendor/magento/module-bundle/Pricing/Adjustment/DefaultSelectionPriceListProvider.php @@ -1,7 +1,7 @@ selectionFactory = $bundleSelectionFactory; + $this->catalogData = $catalogData; + $this->storeManager = $storeManager; + $this->websiteRepository = $websiteRepository; } /** - * {@inheritdoc} + * @inheritdoc */ public function getPriceList(Product $bundleProduct, $searchMin, $useRegularPrice) { @@ -138,7 +166,11 @@ private function addMiniMaxPriceList(Product $bundleProduct, $selectionsCollecti */ private function addMaximumMultiSelectionPriceList(Product $bundleProduct, $selectionsCollection, $useRegularPrice) { - $selectionsCollection->addPriceData(); + $websiteId = (int)$this->storeManager->getStore()->getWebsiteId(); + if ($websiteId === 0) { + $websiteId = $this->websiteRepository->getDefault()->getId(); + } + $selectionsCollection->addPriceData(null, $websiteId); foreach ($selectionsCollection as $selection) { $this->priceList[] = $this->selectionFactory->create( @@ -153,6 +185,8 @@ private function addMaximumMultiSelectionPriceList(Product $bundleProduct, $sele } /** + * Adjust min price for non required options + * * @return void */ private function processMinPriceForNonRequiredOptions()