- Posts: 114
- Thank you received: 4
empty modal when printing invoice
9 years 3 months ago #271603
by peteo
empty modal when printing invoice was created by peteo
Please Log in or Create an account to join the conversation.
9 years 3 months ago #271637
by nicolas
Replied by nicolas on topic empty modal when printing invoice
Hi,
Thank you for your feedback. I've added a fix to the plugin for that.
Please download again the install package of the plugin on our website and install it on yours and it should then work properly.
Thank you for your feedback. I've added a fix to the plugin for that.
Please download again the install package of the plugin on our website and install it on yours and it should then work properly.
Please Log in or Create an account to join the conversation.
9 years 3 months ago #271660
by peteo
Replied by peteo on topic empty modal when printing invoice
I installed it but nothing has changed really. The modal is still empty. Maybe I did not get the current version of the plugin - where can I download it except from within the invoice?
Please Log in or Create an account to join the conversation.
9 years 3 months ago #271664
by nicolas
Replied by nicolas on topic empty modal when printing invoice
It's the link in the invoice.
The fix consists in changing the code:
by:
in the file plugins/hikashop/attachinvoice/attachinvoice.php
So you can directly check the code in that file and change the code if necessary.
The fix consists in changing the code:
Code:
$js = 'parent.window.location.href=\''.$url.'redirect_popup=1\';';
echo '<html><head><script type="text/javascript">'.$js.'</script></head><body></body></html>';
Code:
echo '<html><head>
<script type="text/javascript">
window.onload = function(){
window.location.href=\''.$url.'redirect_popup=1\';
setTimeout(function(){
window.parent.hikashop.closeBox();
},2000);
}
</script></head><body></body></html>';
So you can directly check the code in that file and change the code if necessary.
Please Log in or Create an account to join the conversation.
9 years 3 months ago - 9 years 3 months ago #271886
by peteo
Replied by peteo on topic empty modal when printing invoice
That fix is in the plugin, I checked. But the empty modal is still there for 2 sec.
Last edit: 9 years 3 months ago by peteo.
Please Log in or Create an account to join the conversation.
9 years 3 months ago #271890
by nicolas
Replied by nicolas on topic empty modal when printing invoice
Hi,
That's normal. The popup has to be there for the override to work properly. The goal of the fix is only to close the popup after the PDF download process is launched.
That's normal. The popup has to be there for the override to work properly. The goal of the fix is only to close the popup after the PDF download process is launched.
Please Log in or Create an account to join the conversation.
Time to create page: 0.218 seconds