Skip to content

Commit bdeb934

Browse files
fixed validation for bundle checkbox options
1 parent 1116437 commit bdeb934

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Bundle/view/frontend/templates/catalog/product/view/type/bundle/option

1 file changed

+3
-1
lines changed

app/code/Magento/Bundle/view/frontend/templates/catalog/product/view/type/bundle/option/checkbox.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
data-selector="bundle_option[<?= $block->escapeHtmlAttr($_option->getId()) ?>][<?= $block->escapeHtmlAttr($_selection->getId()) ?>]"
3333
<?php if ($block->isSelected($_selection)) { echo ' checked="checked"'; } ?>
3434
<?php if (!$_selection->isSaleable()) { echo ' disabled="disabled"'; } ?>
35-
value="<?= $block->escapeHtmlAttr($_selection->getSelectionId()) ?>"/>
35+
value="<?= $block->escapeHtmlAttr($_selection->getSelectionId()) ?>"
36+
data-errors-message-box="#validation-message-box"/>
3637
<label class="label"
3738
for="bundle-option-<?= $block->escapeHtmlAttr($_option->getId()) ?>-<?= $block->escapeHtmlAttr($_selection->getSelectionId()) ?>">
3839
<span><?= /* @noEscape */ $block->getSelectionQtyTitlePrice($_selection) ?></span>
@@ -42,6 +43,7 @@
4243
</div>
4344
<?php endforeach; ?>
4445
<div id="bundle-option-<?= $block->escapeHtmlAttr($_option->getId()) ?>-container"></div>
46+
<div id="validation-message-box"></div>
4547
<?php endif; ?>
4648
</div>
4749
</div>

0 commit comments

Comments
 (0)