- Magento Development
- Magento Services
- Industry Solutions
- Hire Magento Developer
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
create the event.xml on your module under the Vendor/Module/etc/event.xml and...
If you need a custom meta tag for a specific...
Generally, if you load font as preload, it will load...
Step 1: First you need to add di.xml in the...
Override the vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml file on your theme and add the...