Attach invoice plugin add a white page at the end

  • Posts: 183
  • Thank you received: 10
  • Hikashop Business
4 months 3 weeks ago #357443

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 3.10.12
-- PHP version -- : 8.1.x

We use the attach invoice plugin in the orders list to download the shipping invoice PDF. Sometimes even multiple. But every time I download the PDF there is always an empty page at the end or between the different invoices when multiple are printed in one PDF.

Can this empty page at the end be removed?

Attachments:

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

  • Posts: 81597
  • Thank you received: 13081
  • MODERATOR
4 months 3 weeks ago #357445

Hi,

Can you check that you're using the latest version of the PDF invoice plugin ?
I think this was something we fixed in the past.
To get the latest version, you need to manually download the plugin via the download link which was provided to you when you first purchased the plugin and then install it via the Joomla extensions installer screen.

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

  • Posts: 183
  • Thank you received: 10
  • Hikashop Business
4 months 3 weeks ago #357452

Hi,

Downloading the latest version was the first thing I did after encountering the problem.
I downloaded the latest version from the link on the invoice. Is that the correct wat to download the newest version?

Else I hope you can fix it.

Thanks

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

  • Posts: 81597
  • Thank you received: 13081
  • MODERATOR
4 months 2 weeks ago #357460

Hi,

Ok, I see what's the problem.
What you can do is to change the line:

$content = implode("<div style='page-break-before:always'></div>",$pdfContent);
to:
$content = implode("",$pdfContent);
in the file plugins/hikashop/attachinvoice/attachinvoice.php
We'll look at improving this so that no code modification is required.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum