File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed
Bundle/view/adminhtml/templates/product/composite/fieldset/options/type
adminhtml/templates/catalog/product/composite/fieldset/options/type
base/templates/product/composite/fieldset/options/view
Downloadable/view/adminhtml/templates/product/composite/fieldset Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 10
10
<?php $ _selections = $ _option ->getSelections (); ?>
11
11
<?php $ _skipSaleableCheck = $ this ->helper (Magento \Catalog \Helper \Product::class)->getSkipSaleableCheck (); ?>
12
12
13
- <div class="field admin__field options<?php if ($ _option ->getRequired ()) { echo ' required _required ' ; } ?> ">
13
+ <div class="field admin__field options<?php if ($ _option ->getRequired ()) { echo ' _required ' ; } ?> ">
14
14
<label class="label admin__field-label">
15
15
<span><?= $ block ->escapeHtml ($ _option ->getTitle ()) ?> </span>
16
16
</label>
Original file line number Diff line number Diff line change 9
9
<?php $ _option = $ block ->getOption (); ?>
10
10
<?php $ _selections = $ _option ->getSelections (); ?>
11
11
<?php $ _skipSaleableCheck = $ this ->helper (Magento \Catalog \Helper \Product::class)->getSkipSaleableCheck (); ?>
12
- <div class="field admin__field <?php if ($ _option ->getRequired ()) { echo ' required ' ; } ?> <?php if ($ _option ->getDecoratedIsLast ()) :?> last<?php endif ; ?> ">
12
+ <div class="field admin__field <?php if ($ _option ->getRequired ()) { echo ' _required ' ; } ?> <?php if ($ _option ->getDecoratedIsLast ()) :?> last<?php endif ; ?> ">
13
13
<label class="label admin__field-label"><span><?= $ block ->escapeHtml ($ _option ->getTitle ()) ?> </span></label>
14
14
<div class="control admin__field-control">
15
15
<?php if (count ($ _selections ) == 1 && $ _option ->getRequired ()) : ?>
Original file line number Diff line number Diff line change 12
12
<?php $ _skipSaleableCheck = $ this ->helper (Magento \Catalog \Helper \Product::class)->getSkipSaleableCheck (); ?>
13
13
<?php list ($ _defaultQty , $ _canChangeQty ) = $ block ->getDefaultValues (); ?>
14
14
15
- <div class="field admin__field options<?php if ($ _option ->getRequired ()) { echo ' required ' ; } ?> ">
15
+ <div class="field admin__field options<?php if ($ _option ->getRequired ()) { echo ' _required ' ; } ?> ">
16
16
<label class="label admin__field-label"><span><?= $ block ->escapeHtml ($ _option ->getTitle ()) ?> </span></label>
17
17
<div class="control admin__field-control">
18
18
<div class="nested<?php if ($ _option ->getDecoratedIsLast ()) :?> last<?php endif ; ?> ">
39
39
<?php foreach ($ _selections as $ _selection ) : ?>
40
40
<div class="field choice admin__field admin__field-option">
41
41
<input type="radio"
42
- class="radio admin__control-radio <?= $ _option ->getRequired () ? ' validate-one- required-by-name ' : '' ?> change-container-classname"
42
+ class="radio admin__control-radio <?= $ _option ->getRequired () ? ' required-entry ' : '' ?> change-container-classname"
43
43
id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -<?= $ block ->escapeHtmlAttr ($ _selection ->getSelectionId ()) ?> "
44
44
name="bundle_option[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
45
45
<?php if ($ block ->isSelected ($ _selection )) { echo ' checked="checked" ' ; } ?>
66
66
</label>
67
67
<div class="control admin__field-control"><input <?php if (!$ _canChangeQty ) { echo ' disabled="disabled" ' ; } ?>
68
68
id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -qty-input"
69
- class="input-text admin__control-text qty<?php if (!$ _canChangeQty ) { echo ' qty-disabled ' ; } ?> "
69
+ class="input-text admin__control-text qty validate-greater-than-zero <?php if (!$ _canChangeQty ) { echo ' qty-disabled ' ; } ?> "
70
70
type="text"
71
71
name="bundle_option_qty[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
72
72
value="<?= $ block ->escapeHtmlAttr ($ _defaultQty ) ?> " />
Original file line number Diff line number Diff line change 12
12
<?php $ _skipSaleableCheck = $ this ->helper (Magento \Catalog \Helper \Product::class)->getSkipSaleableCheck (); ?>
13
13
<?php list ($ _defaultQty , $ _canChangeQty ) = $ block ->getDefaultValues (); ?>
14
14
15
- <div class="field admin__field option<?php if ($ _option ->getDecoratedIsLast ()) :?> last<?php endif ; ?> <?php if ($ _option ->getRequired ()) { echo ' required _required ' ; } ?> ">
15
+ <div class="field admin__field option<?php if ($ _option ->getDecoratedIsLast ()) :?> last<?php endif ; ?> <?php if ($ _option ->getRequired ()) { echo ' _required ' ; } ?> ">
16
16
<label class="label admin__field-label"><span><?= $ block ->escapeHtml ($ _option ->getTitle ()) ?> </span></label>
17
17
<div class="control admin__field-control">
18
18
<?php if ($ block ->showSingle ()) : ?>
49
49
<div class="control admin__field-control">
50
50
<input <?php if (!$ _canChangeQty ) { echo ' disabled="disabled" ' ; } ?>
51
51
id="bundle-option-<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> -qty-input"
52
- class="input-text admin__control-text qty<?php if (!$ _canChangeQty ) { echo ' qty-disabled ' ; } ?> "
52
+ class="input-text admin__control-text qty validate-greater-than-zero <?php if (!$ _canChangeQty ) { echo ' qty-disabled ' ; } ?> "
53
53
type="text"
54
54
name="bundle_option_qty[<?= $ block ->escapeHtmlAttr ($ _option ->getId ()) ?> ]"
55
55
value="<?= $ block ->escapeHtmlAttr ($ _defaultQty ) ?> " />
Original file line number Diff line number Diff line change 6
6
?>
7
7
<?php /* @var $block \Magento\Catalog\Block\Product\View\Options\Type\Select */ ?>
8
8
<?php $ _option = $ block ->getOption (); ?>
9
- <div class="admin__field field<?= $ _option ->getIsRequire () ? ' required _required ' : '' ?> ">
9
+ <div class="admin__field field<?= $ _option ->getIsRequire () ? ' _required ' : '' ?> ">
10
10
<label class="label admin__field-label">
11
11
<span><?= $ block ->escapeHtml ($ _option ->getTitle ()) ?> </span>
12
12
</label>
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ if ($option) : ?>
53
53
}
54
54
?>
55
55
56
- <div class="field choice admin__field admin__field-option <?= /* @noEscape */ $ option -> getIsRequire () ? ' required ' : '' ?> ">
56
+ <div class="field choice admin__field admin__field-option">
57
57
<input type="<?= $ block ->escapeHtmlAttr ($ optionType ) ?> "
58
58
class="<?= $ optionType === Option::OPTION_TYPE_RADIO
59
59
? 'radio admin__control-radio '
Original file line number Diff line number Diff line change 18
18
</legend><br />
19
19
<?php $ _links = $ block ->getLinks (); ?>
20
20
<?php $ _isRequired = $ block ->getLinkSelectionRequired (); ?>
21
- <div class="field admin__field link <?php if ($ _isRequired ) { echo ' required _required ' ; } ?> ">
21
+ <div class="field admin__field link<?php if ($ _isRequired ) { echo ' _required ' ; } ?> ">
22
22
<label class="label admin__field-label"><span><?= $ block ->escapeHtml ($ block ->getLinksTitle ()) ?> </span></label>
23
23
<div class="control admin__field-control" id="downloadable-links-list">
24
24
<?php foreach ($ _links as $ _link ) : ?>
25
25
<div class="nested admin__field-option">
26
26
<?php if ($ _linksPurchasedSeparately ) : ?>
27
27
<input type="checkbox"
28
- class="admin__control-checkbox checkbox<?php if ($ _isRequired ) :?> validate-one- required-by-name <?php endif ; ?> product downloadable link"
28
+ class="admin__control-checkbox checkbox<?php if ($ _isRequired ) :?> required-entry <?php endif ; ?> product downloadable link"
29
29
name="links[]" id="links_<?= $ block ->escapeHtmlAttr ($ _link ->getId ()) ?> "
30
30
value="<?= $ block ->escapeHtmlAttr ($ _link ->getId ()) ?> "
31
31
<?= $ block ->escapeHtml ($ block ->getLinkCheckedValue ($ _link )) ?>
@@ -81,7 +81,7 @@ require(['prototype'], function(){
81
81
}
82
82
}
83
83
//]]>
84
-
84
+
85
85
});
86
86
</script>
87
87
<?php endif ;?>
You can’t perform that action at this time.
0 commit comments