- Posts: 83
- Thank you received: 1
[SOLVED] Frontend Invoice Print Issue - IE9
- manjeshmohan
-
Topic Author
- Offline
Less
More
13 years 11 months ago - 13 years 10 months ago #70518
by manjeshmohan
[SOLVED] Frontend Invoice Print Issue - IE9 was created 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.
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.
13 years 11 months ago #70746
by nicolas
Replied by nicolas on topic Re: Frontend Invoice Print Issue - IE9
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.
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.
- manjeshmohan
-
Topic Author
- Offline
Less
More
- Posts: 83
- Thank you received: 1
13 years 11 months ago #70833
by manjeshmohan
Replied by manjeshmohan on topic Re: Frontend Invoice Print Issue - IE9
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.
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.
13 years 11 months ago #70967
by nicolas
Replied by nicolas on topic Re: Frontend Invoice Print Issue - IE9
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
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.
- manjeshmohan
-
Topic Author
- Offline
Less
More
- Posts: 83
- Thank you received: 1
13 years 11 months ago #71023
by manjeshmohan
Replied by manjeshmohan on topic Re: Frontend Invoice Print Issue - IE9
Solved now. 
Thanks.
I changed the same in the views->printcart, that's why it was not working out.
Regards,
Manjesh.
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