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. Continue reading “How to disable Company field from Checkout page in Magento 2?”

Magento 2 Get All Shipping Methods list.

Get all the shipping methods in Magento 2 by native Magento class, Magento\Shipping\Model\Config\Source\Allmethods

Using above class you can get all the shipping method in Magento. Shipping method Continue reading “Magento 2 Get All Shipping Methods list.”

Get active payment methods list in Magento 2.

Magento 2, You can get list of active payment methods using Magento\Payment\Model\Config class.

You need to instantiate Config Class in the construct method of the class to fetch list of active payment methods.

Return methods are both online and offline Payment methods of a system. You can get it by simple code snippets. Continue reading “Get active payment methods list in Magento 2.”