'How to remove required field in checkout
How to change the required field to an optional field on the checkout page that can be enabled and disabled from the backend like a middle name?
Solution 1:[1]
Add this code in the checkout_index_index.xml to remove the required entry at the respective item name. For example, I have removed the required for first name.
<item name="firstname" xsi:type="array">
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">false</item>
</item>
</item>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | LitCommerce Expert |