Skip to main content

Invoice with extra blank pages in Safari

More
6 years 3 months ago #321614 by BluepointWebdesign
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.

More
6 years 3 months ago #321621 by nicolas
Hi,

That's interesting.
I think it's linked to the line:
Code:
<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:
Code:
<?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.144 seconds
Powered by Kunena Forum