Logo in PDF invoice

  • Posts: 46
  • Thank you received: 2
4 years 10 months ago #314667

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2.11
-- Error-message(debug-mod must be tuned on) -- : no bug

Hello,
I have been looking for several days in Hikashop, the forum, the manual, nothing nothing, maybe my eyes are more in front of the holes ..
Ok, I understood that there was the "pdf" plugin. Right now I just want to understand and get my logo to work, how can I do that?


thank you in advance

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 10 months ago #314673

Hi,

With the PDF invoice plugin, there can be some issue when you add a logo to the invoice as the HTML2PDF library used to generate the PDF can have trouble retrieving the image.
But in your case, you're not using that plugin (as far as I can see there is no purchase of that plugin from your user account).
So in that case, you just have to edit the view file displaying the invoice (in the backend it's the file "invoice" of the view "order") via the menu Display>Views and add the HTML tag of your image in the code where you want the logo.
So for example, you can start adding such code at the beginning:

<img href="XXX"/>
where XXX is the URL of your logo that you previously uploaded via the Joomla media manager or FTP.

The following user(s) said Thank You: philament

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

  • Posts: 18
  • Thank you received: 0
  • Hikashop Essential
4 years 2 months ago #324071

Nicolas,

I just want to ad our logo to the invoice, I understand I have to edit some files for that..
I am not an php expert at all, but think (hope) I can fix it..

That said, would it be easier to use the pdf invoice plugin for editing of the invoice, or is that one just for adding the pdf to the invoice?
Before I purchase something, that doesn't do what I expect it would do.

Thanks,

Appie

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #324096

Hi,

Purchasing the PDF invoice plugin won't help you add your logo to the invoices. What it will do is allow you to add the invoice as a PDF attachment to the email notification to the customer.

So supposing you're not using that plugin, you can edit the file order / invoice.php (for the backend) and order / show.php (for the frontend) and add the HTML of your image where you want.
Note that you don't need to know PHP at all for that. You just need basic HTML knowledge since you need to add an img tag in the HTML of the view file.

The following user(s) said Thank You: OnslaughtUK

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

Time to create page: 0.068 seconds
Powered by Kunena Forum