Skip to content

Commit c89c202

Browse files
committed
ACP2E-1388:Bundle Products Not Combining Simple Product Prices When Set to Dynamic Pricing
fixed static
1 parent 44c5fb0 commit c89c202

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Bundle/Model/Plugin/ProductPriceIndexModifier.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ private function filterProductsFromDynamicPriceBundle(string $priceTableName, ar
101101
$linkField = $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();
102102
$connection = $this->resourceConnection->getConnection($this->connectionName);
103103
$select = $connection->select();
104-
$select->from(['selection' => $this->resourceConnection->getTableName('catalog_product_bundle_selection')],
104+
$select->from(
105+
['selection' => $this->resourceConnection->getTableName('catalog_product_bundle_selection')],
105106
[
106107
'product.entity_id AS bundle_id',
107108
'selection.product_id AS child_product_id',
@@ -137,7 +138,7 @@ private function filterProductsFromDynamicPriceBundle(string $priceTableName, ar
137138
}
138139

139140
$filteredProducts = [];
140-
foreach($bundleProducts as $bundle) {
141+
foreach ($bundleProducts as $bundle) {
141142
if ($bundle['bundle_price_type'] != Price::PRICE_TYPE_DYNAMIC) {
142143
$filteredProducts[] = $bundle['child_product_id'];
143144
}

0 commit comments

Comments
 (0)