How to disable Company field from Checkout page in Magento 2?

You can disable Company field from Checkout page using Magento 2. Company field came with Native Magento in the checkout page.

Sometimes the client doesn’t want to display extra field like company name, fax or any other unnecessary field from the checkout page.

In Magento 2 You can disable extra field like Company using XML file or by creating a plugin.

I am going to disable the company field using Plugin way.

Create Registration.php and module.xml file for declaring our new module in Magento 2. I hope you are aware of creating registration.php and module.xml file.

Create a di.xml file in frontend area of the module.

Path, app/code/Rbj/Company/etc/frontend/di.xml

Create LayoutProcessor.php file for use of around plugin for process() function.
process() function is used for render all js layout of Block in the checkout page.

Clear Cache and check for Company field are disabled from the checkout page.

Leave a Reply

Your email address will not be published. Required fields are marked *