cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Billing address on Payment page

Hide Billing address on Payment page

Hi,

 I don't need billing information on payment page. How can i hide/remove "My billing and shipping address are the same" and the address below. I am using magento 2.1.11.

 

Thanks

Untitled-1.jpg

4 REPLIES 4

Re: Hide Billing address on Payment page

Hi @mironasxx

 

To hide the billing address on payment page - you required to create a custom module - by default there is no functionality from backend to hide the billing address.

 

Here i am sharing the link for how to create a custom module to hide the billing address on the payment page , kindly follow this link and create a module for the same - https://magento.stackexchange.com/questions/119490/magento-2-how-to-remove-billing-address

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Hide Billing address on Payment page

Hello @mironasxx,

 

Billing address should be required for each transaction  but forcing the billing and shipping address to be the same is possible without too much modification to the checkout process.

 

Please create and extension from below link

https://magento.stackexchange.com/questions/119490/magento-2-how-to-remove-billing-address

After creating an extension, Please follow below code in Magento root directory for enable extension.

php bin/magento module:enable Pmclain_CustomerAddress
php bin/magento setup:upgrade
rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Hide Billing address on Payment page

Hi after adding your code. I am receiving error:
1 exception(s):
Exception #0 (InvalidArgumentException): Plugin class
Pmclain\CustomerAddress\Plugin\Quote doesn't exist

But Quote.php file exists.
Also i did
setup:upgrade
static-content:deploy
and cache clean

Re: Hide Billing address on Payment page

Hello @mironasxx,

 

Please check this file is created or not?

Pmclain\CustomerAddress\Plugin\Quote.php

If not created then please follow each steps on it and run below command properly

https://magento.stackexchange.com/questions/119490/magento-2-how-to-remove-billing-address

After creating an extension, Please follow below code in Magento root directory for enable extension.

php bin/magento module:enable Pmclain_CustomerAddress
php bin/magento setup:upgrade
rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean

--
If my answer is useful, please Accept as Solution & give Kudos