Automatize invoice print

  • Posts: 85
  • Thank you received: 9
4 years 6 months ago #318087

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.2.26

Hello,

is it possible to automtize the invoice print when a customer create an order?


Thank you for your support

Last edit: 4 years 3 weeks ago by pagemaster.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
4 years 6 months ago #318092

Hi,

With this plugin www.hikashop.com/marketplace/product/18-plugin-pdf.html a PDF of the invoice will be sent to the customer in the email notifications automatically.
And you can have yourself in bcc of the email if you want a copy of the PDF invoice too.

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

  • Posts: 85
  • Thank you received: 9
4 years 6 months ago #318160

Ok, thank you very much.

After I found this guide that explain how to save the attachmend to Google Drive:

www.labnol.org/internet/send-gmail-to-google-drive/21236/


And after how to print automatically the file with a Google Drive compatible Printer:

zapier.com/apps/google-cloud-print/integ...h-google-cloud-print


This is an option, but jutst to know is not possible to print the PDF directly to the default printer?

I know how to do this out of the browser but I don`t know if is possible to automatize this in a browser web page.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
4 years 6 months ago #318162

Hi,

To the default printer ? A web server is normally not connected directly to a printer. I've never seen it in fact, unless it's a local web server on your own computer.
Also, there is no default PHP API to talk to a printer that would be connected to your server.
It requires going through a system program call:
stackoverflow.com/questions/31174998/php...directory-to-printer
So technically, you could achieve it as a custom solution provided that your printer is connected to your web server but that's not something you could have as a generic option or plugin for HikaShop.

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

  • Posts: 85
  • Thank you received: 9
4 years 6 months ago #318230

Ok, thank you very much for clear me all the details.

I think in this case I try to proceed with the first solution.


Best regards

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

  • Posts: 85
  • Thank you received: 9
4 years 3 weeks ago #325461

I made some tests and it seems not possible to automatize the printing because for security reasons is necessary to show the modal print window and confirmed from the user to send the print. In this case we print manually

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

Time to create page: 0.068 seconds
Powered by Kunena Forum