Skip to content

Commit 838f08f

Browse files
committed
Switch updatecart qty input validators to dynamic instead of hardcoded value
1 parent f130812 commit 838f08f

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/templates/cart/item/configure

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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; ?>

0 commit comments

Comments
 (0)