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

Était-ce utile?

La 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'));
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top