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 4040 </div>
4141</div>
4242<?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">
5544 {
5645 "#product_addtocart_form": {
5746 "Magento_Catalog/js/validate-product": {}
5847 }
5948 }
6049</script>
61- <?php endif ; ?>
Original file line number Diff line number Diff line change 1919 <div class="control">
2020 <input type="number" name="qty" id="qty" maxlength="12" value=""
2121 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 ())) ?> "/>
2323 </div>
2424 </div>
2525 <?php endif ; ?>
You can’t perform that action at this time.
0 commit comments