We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53f5942 commit 8050d50Copy full SHA for 8050d50
app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php
@@ -194,10 +194,9 @@ public function getJsonConfig()
194
}
195
196
197
-
198
$preConfiguredQtys = $preConfiguredValues->getData("bundle_option_qty/${optionId}") ?? [];
199
$selections = $options[$optionId]['selections'];
200
- array_walk($selections, function(&$selection, $selectionId) use ($preConfiguredQtys) {
+ array_walk($selections, function (&$selection, $selectionId) use ($preConfiguredQtys) {
201
if (is_array($preConfiguredQtys) && isset($preConfiguredQtys[$selectionId])) {
202
$selection['qty'] = $preConfiguredQtys[$selectionId];
203
} else if ((int)$preConfiguredQtys > 0) {
0 commit comments