Skip to content

Commit

Permalink
Added data validation for the input box (+3 squashed commit)
Browse files Browse the repository at this point in the history
Squashed commit:

[1a39c41fdfe] Added clientside validation

[b3f97d9a78d] Added PHP Doc block for class

[fdb75fff538] error message added if qty is left empty
  • Loading branch information
konarshankar07 authored and Prakash Prajapati committed Jul 8, 2019
1 parent df7852f commit 90be3ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
name="ship[<?= $block->escapeHtml($_index) ?>][<?= $block->escapeHtml($_item->getQuoteItemId()) ?>][qty]"
value="<?= $block->escapeHtml($_item->getQty()) ?>"
size="2"
class="input-text qty"
data-validate="{number: true}"/>
class="input-text qty required-entry"
data-validate="{number: true, required:true}"/>
</div>
</div>
</td>
Expand Down

0 comments on commit 90be3ce

Please sign in to comment.