AbanteCart Community

AbanteCart Development => Customization help => Topic started by: tzantello on June 01, 2017, 09:45:40 AM

Title: Add logo to invoice
Post by: tzantello on June 01, 2017, 09:45:40 AM
I'm needing to add my logo to the invoices. I'm assuming most people want do do this. Can someone please point me in the right direction? What code do I need to add and to where? Thank you!
Title: Re: Add logo to invoice
Post by: abantecart on June 01, 2017, 12:09:07 PM
Here is the the template that you need to edit.
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/pages/account/invoice.tpl

Just add your HTML with the logo somewhere to the top
Title: Re: Add logo to invoice
Post by: llegrand on June 01, 2017, 12:12:56 PM
For clarity are you referring to the order invoice within the account section  or the email order confirmation that is sent when a customer makes an order?

Title: Re: Add logo to invoice
Post by: abantecart on June 01, 2017, 01:43:20 PM
Just in case, here is the file to email template with order confirmation details.

https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/mail/order_confirm.tpl
Title: Re: Add logo to invoice
Post by: Tsietisin on September 10, 2017, 02:27:56 PM
I've been wanting to do the same thing.

I'm altering the file but no matter what I seem to do, the image will just not appear on the invoice. No matter where I add the HTML, it just wont show.

Any other advice that people may be able to give on this one?
Title: Re: Add logo to invoice
Post by: jamesrhenry on June 30, 2019, 04:08:27 PM
I've been wanting to do the same thing.

I'm altering the file but no matter what I seem to do, the image will just not appear on the invoice. No matter where I add the HTML, it just wont show.

Any other advice that people may be able to give on this one?

While I understand this is a couple years old, I figure this might help someone later.

While the above two are great when it comes to being able to see the invoice as a customer, this does not change the admin's view of the invoice where you'd print it, to which I believe the person I quoted is referring.

For this, you've got to add your image HTML code to the admin section, rather than the storefront section.

The section I'm referring to is located at root/admin/view/default/template/responses/sale/order_invoice.tpl

Root is where you installed the AbanteCart, and you don't have to worry about the template, in most cases. If you did install an Admin template, then the default would refer to that template.

Simply place the image code <img src="IMAGE LINK HERE"> at the top of the code, preferably after the <body> on the page.

Now go open a customer's invoice to print & check out your logo on that page!