PDF Plugin with Company Logo

  • Posts: 113
  • Thank you received: 18
12 years 1 month ago #65661

Plugin installation was straightforward but an attempt to view an invoice generates an error:
ERROR n°6 : Impossible to load the image images/companylogo.jpg

The actual image referenced is in HTML of Hika System Configuration's "Shop Address".
Without the image, the PDF invoice works - is there any way to make this work with a logo?

Also in testing, I noted that only the billing address appears on the invoice. Some of my customers have multiple locations, similar to a franchise. The invoice goes to corporate, but they'll need the shipping address for internal accounting purposes.
How can I have the shipping address included on the PDF invoice?

Last edit: 12 years 1 month ago by csymmonds.

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
12 years 1 month ago #65865

You need to have the absolute URL in your image src attribute.
If you just put the relative path, it will work on your website, but the PDF creation system won't be able to load the image and will display that error.

For the shipping address, it seems that there is a typo in the invoice. Please change the line:
$addresses = array('billing_address','shopping_address');
to:
$addresses = array('billing_address','shipping_address');
in the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and that should solve the problem.

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

  • Posts: 22
  • Thank you received: 0
11 years 4 months ago #109337

Hi Nicolas,

I bought the PDF plugin a couple of days ago, and i just read the typo problem in plugins/hikashop/attachinvoice/attachinvoice/invoice.php

For your attention, the typo is still in there.

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #109414

Hi,

Thanks for the feedback ! Indeed, I had forgotten to add the fix on our end. It's done now.

The following user(s) said Thank You: Rebo2k

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

Time to create page: 0.075 seconds
Powered by Kunena Forum