Invoice with extra blank pages in Safari

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
3 years 8 months ago #321614

Hello,

A customer of ours prints the invoices via the backend of the webshop. Hikashop> Orders> Invoice> Print in Safari. But this is not working great ;)

In the Chrome browser he just gets 1 page, but if he prints the same invoice via Safari, he gets 3 pages (2 blank pages).
How can we prevent this and get it the same template / print for Chrome as Safari?

Regards,
Michiel

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

  • Posts: 81361
  • Thank you received: 13036
  • MODERATOR
3 years 8 months ago #321621

Hi,

That's interesting.
I think it's linked to the line:

<div style="page-break-after:always"></div>
at the end of the order / invoice.php view file.

If what you say is right (that it only happens on Safari) and my theory is correct, then changing this code to:
<?php
$navigator_check = hikashop_getNavigator();
if ($navigator_check["name"] != "Apple Safari") {
?>
<div style="page-break-after:always"></div>
<?php
}
via the menu Display>Views should solve the problem.
Could you try that out ?

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

Time to create page: 0.056 seconds
Powered by Kunena Forum