Jump to content

Hooking into PDFInvoice - Can't get it to work.


Recommended Posts

Hi There,

I've been trying to get this working for a few days now without success.

Here's my code, Am I going about this the correct way? I was thinking the pdf object would be passed into the module and therefore I could add to it and return it when finished.

I tried adding the pdf line directly into the PDF.php class to make sure the image worked, it did. But when I do this from my module it doesn't work, I've checked the hook is active for my module.

  public function hookPDFInvoice($pdf, $orderID)
       $pdf->Image('[mywebsite]/prestashop/img/logo.jpg', 0, 10 , 0, 30);

       return $pdf;

Any help would be greatly appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...