Вопрос

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 с атрибуция
Не связан с magento.stackexchange
scroll top