Skip to content

Commit 4249d9a

Browse files
committed
MAGETWO-69959: [GitHub] On editing a Bundle product from shopping cart the user defined quantities of the options are overwritten #4942
- Added user defined quantities of bundle options to bundle json config
1 parent ed8b676 commit 4249d9a

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Bundle/Block/Catalog/Product/View/Type

1 file changed

+4
-0
lines changed

app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ public function getJsonConfig()
178178
$configValue = $preConfiguredValues->getData('bundle_option/' . $optionId);
179179
if ($configValue) {
180180
$defaultValues[$optionId] = $configValue;
181+
$configQty = $preConfiguredValues->getData('bundle_option_qty/' . $optionId);
182+
if ($configQty) {
183+
$options[$optionId]['selections'][$configValue]['qty'] = $configQty;
184+
}
181185
}
182186
}
183187
$position++;

0 commit comments

Comments
 (0)