File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
Catalog/view/frontend/templates/product/view
Checkout/view/frontend/templates/cart/item/configure Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 40
40
</div>
41
41
</div>
42
42
<?php endif ; ?>
43
- <?php if ($ block ->isRedirectToCartEnabled ()) : ?>
44
- <script type="text/x-magento-init">
45
- {
46
- "#product_addtocart_form": {
47
- "Magento_Catalog/product/view/validation": {
48
- "radioCheckboxClosest": ".nested"
49
- }
50
- }
51
- }
52
- </script>
53
- <?php else : ?>
54
- <script type="text/x-magento-init">
43
+ <script type="text/x-magento-init">
55
44
{
56
45
"#product_addtocart_form": {
57
46
"Magento_Catalog/js/validate-product": {}
58
47
}
59
48
}
60
49
</script>
61
- <?php endif ; ?>
Original file line number Diff line number Diff line change 19
19
<div class="control">
20
20
<input type="number" name="qty" id="qty" maxlength="12" value=""
21
21
title="<?php echo $ block ->escapeHtml (__ ('Qty ' )); ?> "
22
- class="input-text qty" data-validate="{'required-number':true,digits:true} "/>
22
+ class="input-text qty" data-validate="<?= $ block -> escapeHtml ( json_encode ( $ block -> getQuantityValidators ())) ?> "/>
23
23
</div>
24
24
</div>
25
25
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments