2

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

2

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'));
3
  • hi @Chirag Patel, thanks for your answer.. I will try it first
    – mrfizh
    Oct 3 '18 at 2:09
  • yes it's works, it need some modified to remove billing address, but thanks for inform core class and line code. next I will update question with my modified code.
    – mrfizh
    Oct 4 '18 at 3:16
  • Welcome @mrfizh :) Oct 4 '18 at 4:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.