Remove shipping address from invoice PDF

  • Posts: 34
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
7 hours 55 minutes ago #369581

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox

1. How can I remove the shipping address from the PDF invoice?

2. How can I automatically include the invoice receipt in the confirmation email when the order status is "Completed"?

Thanks in Advance

Please Log in or Create an account to join the conversation.

  • Posts: 84733
  • Thank you received: 13797
  • MODERATOR
4 hours 6 minutes ago #369584

Hi,

1. You want to go in the menu Display>Views. There, search for the pdf_layout / invoice.php (or one of the other layouts of pdf_layout based on what you selected in the "layout" setting of the PDF invoice plugin). Edit it, and search for the line:

$addresses = array('billing_address','shipping_address');
Replace it by:
$addresses = array('billing_address');
and the shipping address will be removed from the PDF files generated by the plugin.

2. The invoice PDF file will be included automatically in the email sent to the customer once the plugin is installed and enabled.
One reason it would not be the case would be if the "Access level" of the plugin would be changed from something else than public, or if the "Statuses for email attachment" setting would be filled with incorrect statuses (you can leave it empty).

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
2 hours 34 minutes ago #369593

Thanks, I need a separate Plugin for that? I understand you right?

You mean that:
www.hikashop.com/marketplace/product/18-plugin-pdf.html

If yes: The word "invoice" should not appear anywhere in the PDF; can I change that?

Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum