How to remove the city field in checkout billing address, I tried removing it from checkout_index_index.xml
but it's not working?
Magento ver. 2.3.5-p1
billing-addressmagento2magento2.3.5-p1
How to remove the city field in checkout billing address, I tried removing it from checkout_index_index.xml
but it's not working?
Magento ver. 2.3.5-p1
Best Answer
add the following code into your theme checkout_index_index.xml file:
after using this code, city field will remove but getting error on placing order. Error: an error occured on server. Please try again to order place.
Beacuse the php validation return false, inside class Magento\Quote\Model\Quote\Address you will find validate function :
First create the di.xml inisde you extension directly in folder etc YourVendor/YourExtName/etc/di.xml and fill : Remove Postcode from Checkout
Beacuse the php validation return false, inside class Magento\Quote\Model\Quote\Address you will find validate function :
First create the di.xml inisde you extension directly in folder etc YourVendor/YourExtName/etc/di.xml and fill :
Now create the class Address inside YourVendor/YourExtName/Model/Qoute/Adress,php and push :
commented the code related to city field
Update :-
Execute This Query in Database :-
And Check is_requred is 0 or 1
If 1 Than Change And Try