@@ -20,68 +20,70 @@ $viewModel = $block->getData('validateQuantityViewModel');
2020 </label>
2121 <div class="control">
2222 <div class="nested options-list">
23- <?php if ($ block ->showSingle ()) : ?>
23+ <?php if ($ block ->showSingle ()): ?>
2424 <?= /* @noEscape */ $ block ->getSelectionTitlePrice ($ _selections [0 ]) ?>
2525 <?= /* @noEscape */ $ block ->getTierPriceRenderer ()->renderTierPrice ($ _selections [0 ]) ?>
2626 <input type="hidden"
27- class="bundle-option-<?= (int )$ _option ->getId () ?> product bundle option"
28- name="bundle_option[<?= (int )$ _option ->getId () ?> ]"
29- value="<?= (int )$ _selections [0 ]->getSelectionId () ?> "
30- id="bundle-option-<?= (int )$ _option ->getId () ?> -<?= (int )$ _selections [0 ]->getSelectionId () ?> "
31- checked="checked"
27+ class="bundle-option-<?= (int )$ _option ->getId () ?> product bundle option"
28+ name="bundle_option[<?= (int )$ _option ->getId () ?> ]"
29+ value="<?= (int )$ _selections [0 ]->getSelectionId () ?> "
30+ id="bundle-option-<?= (int )$ _option ->getId () ?> -<?= (int )$ _selections [0 ]->getSelectionId () ?> "
31+ checked="checked"
3232 />
33- <?php else : ?>
34- <?php if (!$ _option ->getRequired ()) : ?>
33+ <?php else : ?>
34+ <?php if (!$ _option ->getRequired ()): ?>
3535 <div class="field choice">
3636 <input type="radio"
3737 class="radio product bundle option"
3838 id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> "
3939 name="bundle_option[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
4040 data-selector="bundle_option[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
41- <?= ($ _default && $ _default ->isSalable ())?'' :' checked="checked" ' ?>
41+ <?= ($ _default && $ _default ->isSalable ())?'' :' checked="checked" ' ?>
4242 value=""/>
4343 <label class="label" for="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ">
4444 <span><?= $ block ->escapeHtml (__ ('None ' )) ?> </span>
4545 </label>
4646 </div>
4747 <?php endif ; ?>
48- <?php foreach ($ _selections as $ _selection ) : ?>
48+ <?php foreach ($ _selections as $ _selection ): ?>
4949 <div class="field choice">
5050 <input type="radio"
5151 class="radio product bundle option change-container-classname"
52- id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> "
53- <?php if ($ _option ->getRequired ()) { echo 'data-validate="{ \'validate-one-required-by-name \':true}" ' ; }?>
52+ id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?>
53+ -<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> "
54+ <?php if ($ _option ->getRequired ()) {
55+ echo 'data-validate="{ \'validate-one-required-by-name \':true}" ' ;
56+ } ?>
5457 name="bundle_option[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
5558 data-selector="bundle_option[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
56- <?php if ($ block ->isSelected ($ _selection )) { echo ' checked="checked" ' ; } ?>
57- <?php if (!$ _selection ->isSaleable ()) { echo ' disabled="disabled" ' ; } ?>
58- value="<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> "
59- data-errors-message-box="#validation-message-box-radio"/>
59+ <?php if ($ block ->isSelected ($ _selection )) { echo ' checked="checked" ' ; } ?>
60+ <?php if (!$ _selection ->isSaleable ()) { echo ' disabled="disabled" ' ; } ?>
61+ value="<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> "/>
6062 <label class="label"
61- for="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> ">
63+ for="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?>
64+ -<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> ">
6265 <span><?= /* @noEscape */ $ block ->getSelectionTitlePrice ($ _selection ) ?> </span>
6366 <br/>
6467 <?= /* @noEscape */ $ block ->getTierPriceRenderer ()->renderTierPrice ($ _selection ) ?>
6568 </label>
6669 </div>
6770 <?php endforeach ; ?>
6871 <div id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -container"></div>
69- <div id="validation-message-box-radio"></div>
7072 <?php endif ; ?>
7173 <div class="field qty qty-holder">
7274 <label class="label" for="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -qty-input">
7375 <span><?= $ block ->escapeHtml (__ ('Quantity ' )) ?> </span>
7476 </label>
7577 <div class="control">
7678 <input <?php if (!$ _canChangeQty ) { echo ' disabled="disabled" ' ; } ?>
77- id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -qty-input"
78- class="input-text qty<?php if (!$ _canChangeQty ) { echo ' qty-disabled ' ; } ?> "
79- type="number"
80- min="0"
81- data-validate="<?= $ block ->escapeHtmlAttr ($ viewModel ->getQuantityValidators ()) ?> "
82- name="bundle_option_qty[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
83- data-selector="bundle_option_qty[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
84- value="<?= $ block ->escapeHtmlAttr ($ _defaultQty ) ?> "/>
79+ id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -qty-input"
80+ class="input-text qty<?php if (!$ _canChangeQty ) { echo ' qty-disabled ' ; } ?> "
81+ type="number"
82+ min="0"
83+ data-validate="<?= $ block ->escapeHtmlAttr ($ viewModel ->getQuantityValidators ()) ?> "
84+ name="bundle_option_qty[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
85+ data-selector="bundle_option_qty[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
86+ value="<?= $ block ->escapeHtmlAttr ($ _defaultQty ) ?> "/>
8587 </div>
8688 </div>
8789 </div>
0 commit comments