Skip to main content

[SOLVED] Frontend Invoice Print Issue - IE9

More
13 years 11 months ago - 13 years 10 months ago #70518 by manjeshmohan
Hi,

When I click on the frontend print button, the page is trying to get the print box but it gets closed all of a sudden and be in the same page itself in IE9.

The same is fine for Google Chrome, Firefox and Safari.

Please check the same.

Thanks & Regards,
Manjesh.
Last edit: 13 years 10 months ago by manjeshmohan.

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

More
13 years 11 months ago #70746 by nicolas
Hi,

We tried on our end and it's working on some websites and not on others with IE.
It seems to be a timeout issue.

Try to change the line:
$js = "window.addEvent('domready', function() {window.focus();window.print();setTimeout(function(){try{ window.top.document.getElementById('sbox-window').close(); }catch(err){ window.top.SqueezeBox.close(); }}, 1000);});";

to:
$js = "window.addEvent('domready', function() {setTimeout(function(){window.focus();window.print();setTimeout(function(){try{ window.top.document.getElementById('sbox-window').close(); }catch(err){ window.top.SqueezeBox.close(); }}, 1000);},1000);});";

and that should solve the problem.

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

More
13 years 11 months ago #70833 by manjeshmohan
Hi,

Tried the same and found to be unsuccessful. :(

When I tried to refresh the page, I'm getting the print window.

I also tried to increase the value '1000', but of no use that the print window is not popping up just like in other browsers.

Regards,
Manjesh.

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

More
13 years 11 months ago #70967 by nicolas
That modification has solved it on our end.

We made the modification on our demo website and it's now working there for IE9.

I forgot to say in my last message but that code modification should be done in the file components/com_hikashop/views/order/view.html.php
The following user(s) said Thank You: manjeshmohan

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

More
13 years 11 months ago #71023 by manjeshmohan
Solved now. :)

Thanks.

I changed the same in the views->printcart, that's why it was not working out.

Regards,
Manjesh.

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

Time to create page: 0.190 seconds
Powered by Kunena Forum