Adding logo to customer invoice PDF and email

  • Posts: 24
  • Thank you received: 1
2 years 9 months ago #339414

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.5

I have attempted multiple things and read all forum threads about it, but non seem working, well documented or official.
So how do i add a company logo to customer invoice PDF and email?


Joomla service in Denmark: www.toolmaster.dk

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339420

Hi,

First you want to upload the image to be used on your website. You can use the Joomla media manager or via FTP.
Then, you need to edit the file plugins/attachinvoice/attachinvoice/invoice.php via FTP.
That's the view file which generates the PDF invoice.
There, you can directly add the HTML tag of the image.
For example:

<img src="https://www.hikashop.com/images/logo.png" />
Note that for this to work allow_url_fopen needs to be enabled in your php.ini

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

  • Posts: 24
  • Thank you received: 1
2 years 9 months ago #339442

I can't find the location plugins/attachinvoice/attachinvoice/invoice.php in the file structure?


Joomla service in Denmark: www.toolmaster.dk

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339446

Hi,

My bad, I was too fast. It's plugins/hikashop/attachinvoice/attachinvoice/invoice.php

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

  • Posts: 24
  • Thank you received: 1
2 years 9 months ago #339451

The folder plugins/hikashop/ does not contain a folder called "attachinvoice"...


Joomla service in Denmark: www.toolmaster.dk

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339452

Hi,

Then that means that you didn't install the PDF invoice plugin ( www.hikashop.com/marketplace/product/18-plugin-pdf.html ) which allows HikaShop to generate a PDF invoice for the orders. I checked your purchased on our website and I indeed don't see such a purchase.
But in that case, if you're not talking about the PDF invoice generated by that plugin, what "customer invoice PDF" are you talking about ?

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

  • Posts: 24
  • Thank you received: 1
2 years 9 months ago #339462

Then I might only be talking about the confirmation e-mails then - if this holds the full purchase specification.
I thought this included a PDF automatically like most other shops systems. My bad.

So I might only be talking about how to get the logo into everything that is being sent to the customer by mail (without extensions)?


Joomla service in Denmark: www.toolmaster.dk

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339464

Hi,

HikaShop doesn't attach any attachment to the emails sent to the customer by default.
So I suppose that you're actually talking about the look of the email HTML content itself.

For that, what you can do is edit an email in the menu System>Emails. There, you'll find an option "template" where you can select a template for the email. Next to it, you have an edit button which will open a popup where you can modify the template.
In that template, you first have a bunch of CSS for the colors of the emails, and then the HTML code around each email.
So you can add images in there. Just add the img HTML tag of your image.
Then, save the template, save the selection of the template, and you can use the "preview" button at the top to check how the email will look like with your modifications.

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

  • Posts: 24
  • Thank you received: 1
2 years 9 months ago #339690

It has now worked with the emails to the customer, but not:
- Print Invoice from backend
- Print Shipping Invoice from backend

These must be in Display->View. But there are so many (even for templates not even in use). What are they called?

In general I really don't get why it is not possible in the configuration to simply pick a logo from the media manager and then it is inserted in all the prints/papers and emails to the customer. And if not chosen then no logo is set. This would be a simple and huge addition for everyone!


Joomla service in Denmark: www.toolmaster.dk

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339693

Hi,

If you activate temporarily the "Display view files" setting of the configuration page, you'll see that both of these are displayed by the order / invoice view file. So you can edit it for your backend template via the menu Display>Views to customize them.

Thanks for your feedback. Adding an option to add a logo so that it can be added to the invoices is a nice idea. I've added it on our todo list.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum