File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 56
56
title="<?= $ block ->escapeHtmlAttr (__ ('Qty ' )) ?> "
57
57
class="input-text qty"
58
58
data-validate="<?= $ block ->escapeHtmlAttr ($ viewModel ->getQuantityValidators ($ _item ->getId (), $ _item ->getWebsiteId ())) ?> "
59
+ data-no-validation-for-zero-qty="true"
59
60
data-errors-message-box="#validation-message-box"/>
60
61
</div>
61
62
<?php else : ?>
Original file line number Diff line number Diff line change @@ -1643,6 +1643,9 @@ define([
1643
1643
isQtyIncrementsValid = typeof params . qtyIncrements === 'undefined' ||
1644
1644
resolveModulo ( qty , $ . mage . parseNumber ( params . qtyIncrements ) ) === 0.0 ;
1645
1645
1646
+ if ( $ ( element ) . data ( 'no-validation-for-zero-qty' ) === true && qty === 0 ) {
1647
+ return true ;
1648
+ }
1646
1649
result = qty > 0 ;
1647
1650
1648
1651
if ( result === false ) {
You can’t perform that action at this time.
0 commit comments