Remove shipping address from invoice PDF

  • Posts: 37
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
2 days 2 hours 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: 84734
  • Thank you received: 13804
  • MODERATOR
1 day 22 hours 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: 37
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 day 21 hours 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.

  • Posts: 84734
  • Thank you received: 13804
  • MODERATOR
1 day 18 hours ago #369595

Hi,

Yes, without this plugin HikaShop cannot generate PDF invoices.
So if you need PDF invoices, then you need this plugin.

The text in the invoice, like any text in emails sent by HikaShop, or any interface on the frontend and the backend of HikaShop use translation strings.
So, you can use translation overrides to customize them:
www.hikashop.com/download/languages.html#modify

The following user(s) said Thank You: spike252

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

Time to create page: 0.062 seconds
Powered by Kunena Forum