[Skip to main content](#vessel-content)

#   Print invoice on front end

##

- **[ctsang007](/forum/user/657-ctsang007 "View ctsang007's Profile")**
- [![ctsang007's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/657-ctsang007 "View ctsang007's Profile") Topic Author
- [ Offline](/forum/user/657-ctsang007)

Less More

- Posts: 10
- Thank you received: 0
-
-

15 years 9 months ago [\#8451](#8451) by [ctsang007](/forum/user/657-ctsang007 "View ctsang007's Profile")  *[Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#8451 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")* was created by *[ctsang007](/forum/user/657-ctsang007 "View ctsang007's Profile")*

Hi,

I have the business version which allows my visitors to print invoices from the front end.

When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.

When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.

What do I need to change so that the output from the front end is the actual invoice and not a print screen?

Attached are two files with the output from the front end and back end. Hope you can open the files.

Thanks in advance for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 9 months ago [\#8458](#8458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#8458 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")*

Hi,

Normally, on the front end, it should open a temporary popup with the same invoice as in the backend and automatically print it. It's working fine on our end. You can test it on our demo website. If you don't have the popup opening on your website, it's likely because there is a javascript error on your website. Could you setup an account with an order on your website so that we can check the problem out ? You can send the details via our contact form: [ www.hikashop.com/en/support/contact-us.html](http://www.hikashop.com/en/support/contact-us.html)

PS: we didn't get your images/files.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")**
- [![Jeffq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28397-jeffq "View Jeffq's Profile")
- [ Offline](/forum/user/28397-jeffq)

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 1 week ago [\#132274](#132274) by [Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")  Replied by *[Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")* on topic *[Re: Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#132274 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")*

Hi,

I got a similar problem: when I click on the print button on the front end (user pannel), I get the popup, but no auto printing as in the demo site, and when I print manually, it prints the popup with the cpannel behind it.

When I Iook at the JS console, I see this error after clicking on the print button:
TypeError: go is null @ [ www.mywebsite.com/templates/ca\_cloudspa\_...s/gantry-totop.js:12](http://www.mywebsite.com/templates/ca_cloudspa_j17/js/gantry-totop.js:12)
It's related to the gantry framework, so I doubt it has anything to do with the actual problem, but it might block the execution of something else?

Could you please help me with this problem please?

Thanks in advance.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 week ago [\#132366](#132366) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#132366 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")*

Hi,

Have you edited the view "order / invoice" in the backend template ?
If not, thanks to give us a link to your website and a test account, it could help us to find the origin of the problem.
Your javascript error can cause the print problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")**
- [![Jeffq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28397-jeffq "View Jeffq's Profile")
- [ Offline](/forum/user/28397-jeffq)

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 1 week ago [\#132399](#132399) by [Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")  Replied by *[Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")* on topic *[Re: Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#132399 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")*

Hi,

I did not change that view, but I did change the view order/show (to change iframe size). I removed that change, but this solved nothing.

I just pmed you a test account.

Thanks!

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

13 years 1 week ago [\#132405](#132405) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#132405 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")*

Your problem is indeed with the template's javascript error. It prevents HikaShop's js to print the popup as the template's js is run before and since it crashes, it stops the JS execution.
You will have to see with your template provider for a fix in that [ www.mywebsite.com/templates/ca\_cloudspa\_j17/js/gantry-totop.js](http://www.mywebsite.com/templates/ca_cloudspa_j17/js/gantry-totop.js) file.
Looking at its content, it doesn't seem really important to the functioning of the template. Try to rename that file so that it's not executed anymore and it will remove the error and hopefully the printing will then work automatically.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")**
- [![Jeffq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28397-jeffq "View Jeffq's Profile")
- [ Offline](/forum/user/28397-jeffq)

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 1 week ago [\#132414](#132414) by [Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")  Replied by *[Jeffq](/forum/user/28397-jeffq "View Jeffq's Profile")* on topic *[Re: Print invoice on front end](/forum/4-how-to/8451-print-invoice-on-front-end#132414 "Hi,  I have the business version which allows my visitors to print invoices from the front end.  When you go to the View My Orders section in the front end, open an order, there is a print button. When you click on that button it will print the active screen, see attachment.  When you go to the back end and print and invoice, a pop up window appears with the invoice in the desired layout and the print button appears in the pop up window. The output is perfect, i.e. as desired.  What do I need to change so that the output from the front end is the actual invoice and not a print screen?  Attached are two files with the output from the front end and back end. Hope you can open the files.  Thanks in advance for your help.")*

Hi,

Thanks, that was the problem indeed. After looking around in the template configuration, there is a option to deactivate the totop function. Now it works as expected!

Thanks again for your awesome support!

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0NTEtcHJpbnQtaW52b2ljZS1vbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.082 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
