Skip to main content

Automatize invoice print

6 years 6 months ago - 6 years 1 hour ago #318087 by pagemaster
-- 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: 6 years 1 hour ago by pagemaster.

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

6 years 6 months ago #318092 by nicolas
Replied by nicolas on topic Automatize invoice print
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.

6 years 6 months ago #318160 by pagemaster
Replied by pagemaster on topic Automatize invoice print
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.

6 years 6 months ago #318162 by nicolas
Replied by nicolas on topic Automatize invoice print
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.

6 years 6 months ago #318230 by pagemaster
Replied by pagemaster on topic Automatize invoice print
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.

6 years 1 hour ago #325461 by pagemaster
Replied by pagemaster on topic Automatize invoice print
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