Page 1 of 3

Re: Open Cart Invoice Template

Posted: 20 Jun 2012, 13:29
by gstk
(Search Police I swear I have search first before posting)

Does anyone know anyone or is able to edit the invoice that opencart uses as a default. I am happy with the default template but would like to add a logo and swap the shipping address with the customer address as we use window envelopes and it folds nicer. Dont expect it for nothing.

While on the subject - I am really impressed with opencart. I have an ekmpowershop but I think Opencart is better. I am seriously thinking about ditching EKM and saving the £20 - Google obviously likes Opencart more than EKM. Still experimenting but so far so good.

Re: Open Cart Invoice Template

Posted: 20 Jun 2012, 14:27
by Mattie
Hi

to add your store logo to your invoice go to "admin/view/template/sale/order_invoice.tpl" and add just before the H1 tag as seen below.

' . "\n"; ?>

" lang="" xml:lang="">


" />




























































  -




















then go to /admin/view/template/sale/order_invoices.tpl and do the same. Just add the image tag just before the title tag.

Re: Open Cart Invoice Template

Posted: 20 Jun 2012, 14:31
by Mattie
For the address changes

go to both

admin/view/template/sale/order_invoices.tpl
and
admin/view/template/sales/order_invoice.tpl

look for




around line 77 and swap the two around, this should change them around on the invoice.

Re: Open Cart Invoice Template

Posted: 20 Jun 2012, 23:27
by gstk
worked a treat - thanks

Re: Open Cart Invoice Template

Posted: 20 Jun 2012, 23:40
by gstk
Your next mission "Should you choose to accept" (\MI mode)
How do I get the products to show centrally aligned rather than to the left. Its annoying the crud out of me.

Thanks

Re: Open Cart Invoice Template

Posted: 20 Jun 2012, 23:51
by Mattie
Hi

No problem glad to help

Which page do you mean that you want them to be centred?

Re: Open Cart Invoice Template

Posted: 21 Jun 2012, 08:02
by gstk
For example on the front page there is the featured box and the latest box. I have 4 items showing in each but they all align to the left hand side - I would like them centred if poss.

Re: Open Cart Invoice Template

Posted: 21 Jun 2012, 10:33
by Mattie
Download and unzip this vqmod.

Then upload to your vqmod file and clear the vqcache.

This will centre your featured, bestsellers, specials, latest.

Re: Open Cart Invoice Template

Posted: 21 Jun 2012, 16:20
by gstk
Mattie;48192 wrote:Download and unzip this vqmod.

Then upload to your vqmod file and clear the vqcache.

This will centre your featured, bestsellers, specials, latest.
Whoa there Matty, you must be mistaking me for someone with half a brain. Type that slower and explain a bit more if you would. That might as well been in martian

Tony

Re: Open Cart Invoice Template

Posted: 21 Jun 2012, 16:25
by Mattie
Sorry mate.

1. download the file attached and unzip it
2. You'll then see the XML file
3. Logon to your server via FTP
4. Locate and open your vqmod folder then open the folder called "xml"
5. Upload the XML file to this folder
6. open your vqmod cache folder and delete the cache
7. your all done your modules should now have the products centred

If your stuck you can provide me with your FTP details and i'll do it for you.