File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/code/Magento/Bundle/Model/ResourceModel/Indexer Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 17
17
use Magento \Customer \Model \Indexer \CustomerGroupDimensionProvider ;
18
18
use Magento \Store \Model \Indexer \WebsiteDimensionProvider ;
19
19
use Magento \Catalog \Model \Product \Attribute \Source \Status ;
20
+ use Magento \CatalogInventory \Model \Stock ;
20
21
21
22
/**
22
23
* Bundle products Price indexer resource model
@@ -624,6 +625,13 @@ private function calculateDynamicBundleSelectionPrice($dimensions)
624
625
'tier_price ' => $ tierExpr ,
625
626
]
626
627
);
628
+ $ select ->join (
629
+ ['si ' => $ this ->getTable ('cataloginventory_stock_status ' )],
630
+ 'si.product_id = bs.product_id ' ,
631
+ []
632
+ );
633
+ $ select ->where ('si.stock_status = ? ' , Stock::STOCK_IN_STOCK );
634
+
627
635
$ this ->tableMaintainer ->insertFromSelect ($ select , $ this ->getBundleSelectionTable (), []);
628
636
}
629
637
You can’t perform that action at this time.
0 commit comments