Can Logos be added to invoices

  • Posts: 110
  • Thank you received: 0
13 years 7 months ago #11588

Hi

Quick question: Can we add our company logo to invoices and shipping invoices? Please advise.

Many thanks

D

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 7 months ago #11600

Hi,

Sure. In the config in the option "Your shop address" you can add HTML tags. That way you can add an image on top of your address.

Otherwise, if you want to personalize further your invoices, you will have to go in the menu Display->Views and edit the files invoice and show of the view order.

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

  • Posts: 110
  • Thank you received: 0
13 years 7 months ago #11614

nicolas wrote:

Hi,

Sure. In the config in the option "Your shop address" you can add HTML tags. That way you can add an image on top of your address.


No it doesn't - it just gets rid of the tags or the address altogether.

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 7 months ago #11618

In the file administrator/components/com_hikashop/controllers/config.php there is a typo on the line:
$formData=JRequest::getVar( 'config_store_address','','','string',JREQUEST_ALLOWRAW);

It should be:
$formData=JRequest::getVar( 'config_store_address','','','string',JREQUEST_ALLOWRAW);

After that modification, it should work.

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

  • Posts: 110
  • Thank you received: 0
13 years 7 months ago #12362

Hi Nicolas

I don't even have the config file. These are the files I have on that path:


Please help.

Attachments:

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 7 months ago #12364

You're not looking at the good folder.

You're looking at components/com_hikashop/controllers and not administrator/components/com_hikashop/controllers

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

  • Posts: 110
  • Thank you received: 0
13 years 7 months ago #12390

Oops my mistake! Anyway that didn't work so I went into the Display > Views > Invoices

However I have a separate problem: The invoice is printing on 2 pages and the 2nd page is blank. How can I stop this.

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

  • Posts: 110
  • Thank you received: 0
13 years 7 months ago #12391

Actually I can answer this myself:

Remove or comment out

<div style="page-break-after:always"></div>

From the bottom of Display > Views > Invoice

Hope this helps.

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 7 months ago #12394

Could you try to delete the code: <div style="page-break-after:always"></div> at the end of the invoice file of the view order ?

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

  • Posts: 392
  • Thank you received: 0
13 years 3 months ago #22093

Do we go to display, then to view, then which one do we change?

Is this right? :blink:

Thanks :)

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 3 months ago #22103

Yes it's right. In the menu Display->Views, you can edit the file "invoice" of the view "order" for your back end template and add your logo there.
You could also alternatively add it in the shop address which is displayed on the invoice top left corner.

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

  • Posts: 392
  • Thank you received: 0
13 years 3 months ago #22181

Hello,
To stop the 2 pages printing, do we need to remove the code on all the order/show files?

Thanks :)

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 3 months ago #22185

Hi,
That code is in the order show file of the front end and in the order invoice file of the back end. You need to remove it only for the file corresponding to the template you're using (in the back end or in the front end based on the file).

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

  • Posts: 392
  • Thank you received: 0
13 years 3 months ago #22339

Got it!

Thanks again Nicolas :)

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

  • Posts: 2
  • Thank you received: 0
13 years 5 days ago #28514

Sorry for asking a stupid question, but I'm not familiar with editing this file (order / invoice.php)
What code do I need to add where, and where do I need to upload the logo I want to add in the invoice send to the customer?

Richard

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 4 days ago #28544

You don't need to edit the view file if it's complicated for you.

Just go in the configuration of HikaShop, and in the option "Your shop address" you can add an image tag for your image like that:

<img src="http://mywebsite.com/myimage.jpg" />
ACME Corporation
Guildhall
 PO Box 270, London
United Kingdom
You can put your image wherever you want... In that example I assume that the image is in the root folder of your website and is called myimage.jpg

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

  • Posts: 392
  • Thank you received: 0
13 years 4 days ago #28568

Hello,

When I save the tag in the address box, it keeps disappearing... Is there something I am missing/not doing?

Thanks :)

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 4 days ago #28577

I had checked with the <br/> tag.
Indead, the other tags are removed.

That's because of the line:
$params[] = '('.$this->database->Quote(strip_tags($namekey)).','.$this->database->Quote(strip_tags($value,'<br/>')).($default?','.$this->database->Quote($this->values[$namekey]->config_default):'').')';

in the file administrator/components/com_hikashop/classes/config.php

if you change it to :
$params[] = '('.$this->database->Quote(strip_tags($namekey)).','.$this->database->Quote($value).($default?','.$this->database->Quote($this->values[$namekey]->config_default):'').')';

it will work.

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

  • Posts: 392
  • Thank you received: 0
13 years 3 days ago #28596

Great, thanks, works like a charm now :)

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

  • Posts: 2
  • Thank you received: 0
13 years 2 days ago #28675

Thanks for the advise and tips, but on the confirmation email send to the customer no shop information is visible at all.

This is the information I have entered in the Your Shopaddress field <img src="http://yourwebsite/images/fim.jpg />
Shopname
Street
City

This is the confirmation send to the customer

Subject: Your order No. N12 is now created at http://yourwebsite


Hi Customer,

We are pleased to confirm the creation of your order No. N12 http://yourwebsite/index.php?option=com_hikashop&ctrl=order&task=show&cid[]=12&Itemid=211 ) at http://yourwebsite on the 31 oktober 2011 at 07:46


SUMMARY OF YOUR ORDER

Name Unit price Qty Total
shampoo 1,19 € 1 1,19 €
Shipping method : 6,75 €
TOTAL without VAT : 7,75 €
TOTAL with VAT : 7,94 €


Billing address

Mr Nick Noname
Street
City
Country
Telephone: xxxxxxx

Shipping address

Mr Nick Noname
Street
City
Country
Telephone: xxxxxxx



Your order will be processed as soon as we receive your payment.

Once again, thank you for your order at http://yourwebsite/. We hope to see you again soon.

Best regards

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

Time to create page: 0.106 seconds
Powered by Kunena Forum