Magento 2 Hide Billing Address from Invoice email and print
-
29-01-2021 - |
Question
I get some unique case that force me to hide billing address on the invoice print and invoice email in the magento 2.
may I know, how to do that ?
any help will be appreciated
Solution
For the remove billing address in Print invoice i think you need to override below file in your custom module.
vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php
And find code of
/* Billing Address */
$billingAddress = $this->_formatAddress($this->addressRenderer->format($order->getBillingAddress(), 'pdf'));
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange