Jump to content
  • 0
ExtremeHDx

New PDF Invoices download link

Question

Hello everyone,

 

as you know we can download pdf files in order history. But I'm using a webservice and the invoices are saved in /var/www/themes/spar-theme/Factures/XXXX.pdf

 

I would like to know how can I make in history.tpl a new download link that download the pdf files in this directory.

Thanks for your help.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Try to override the /controllers/front/PdfInvoiceController.php controller.

Share this post


Link to post
Share on other sites
  • -1

I can download the pdf files now. I just changed the history.tpl file by changing href link, I don't use the controller, I have put the absolute path of the pdf file but I don't know if it's secure enough.

  • Confused 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More