Today we are going to talk about how to remove the postcode field in checkout in Magento 2?
The field is dynamically created from EAV attributes on the LayoutProcessor class.
All we need to do is to set is_user_defined to 1 for the postcode eav_attribute. I recommend doing this via a setup resource, like this:
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
/** @var \Magento\Customer\Setup\CustomerSetupFactory $customerSetup */
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'postcode');
also, we need to remove validation for that, so we can direct set 0 to DB in eav_attribute table
[crayon-633c29ada9148643166873/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...