Skip to content

Commit

Permalink
Checkout Totals Sort Order fields can't be empty and should be a number.
Browse files Browse the repository at this point in the history
Same fix than PR 22411 on 2.3.
barbanet committed Apr 18, 2019
1 parent 77de966 commit 2910efd
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/code/Magento/Sales/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
@@ -27,18 +27,23 @@
<label>Checkout Totals Sort Order</label>
<field id="discount" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Discount</label>
<validate>required-number validate-number</validate>
</field>
<field id="grand_total" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Grand Total</label>
<validate>required-number validate-number</validate>
</field>
<field id="shipping" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Shipping</label>
<validate>required-number validate-number</validate>
</field>
<field id="subtotal" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Subtotal</label>
<validate>required-number validate-number</validate>
</field>
<field id="tax" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Tax</label>
<validate>required-number validate-number</validate>
</field>
</group>
<group id="reorder" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
1 change: 1 addition & 0 deletions app/code/Magento/Weee/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@
<group id="totals_sort">
<field id="weee" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Fixed Product Tax</label>
<validate>required-number validate-number</validate>
</field>
</group>
</section>

0 comments on commit 2910efd

Please sign in to comment.