Magento 2 Hide Billing Address from Invoice email and print
-
29-01-2021 - |
Pregunta
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
Solución
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'));
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange