Print invoice on front end

  • Posts: 10
  • Thank you received: 0
14 years 3 months ago #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.

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

  • Posts: 83824
  • Thank you received: 13571
  • MODERATOR
14 years 3 months ago #8458

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

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

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

  • Posts: 20
  • Thank you received: 0
11 years 6 months ago #132274

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
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 or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #132366

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 or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
11 years 6 months ago #132399

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 or Create an account to join the conversation.

  • Posts: 83824
  • Thank you received: 13571
  • MODERATOR
11 years 6 months ago #132405

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 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 or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
11 years 6 months ago #132414

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 or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum