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

有帮助吗?

解决方案

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'));
许可以下: CC-BY-SA归因
scroll top