[SOLVED] Frontend Invoice Print Issue - IE9

  • Posts: 83
  • Thank you received: 1
12 years 1 month ago #70518

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: 12 years 1 week ago by manjeshmohan.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 1 month ago #70746

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 = "do_nothing( function() {window.focus();window.print();setTimeout(function(){try{ window.top.document.getElementById('sbox-window').close(); }catch(err){ window.top.SqueezeBox.close(); }}, 1000);});";

to:
$js = "do_nothing( 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.

  • Posts: 83
  • Thank you received: 1
12 years 1 month ago #70833

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 1 month ago #70967

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.

  • Posts: 83
  • Thank you received: 1
12 years 1 month ago #71023

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.060 seconds
Powered by Kunena Forum