Zen Cart Logo
Forums / Customization from the Admin / Adding a cusom message to invoice

Adding a cusom message to invoice

Views: 1,521

Results 1 to 4 of 4
21 Feb 2011, 11:21 PM
#1
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Location:
Southern Maine
Posts:
268
Plugin Contributions:
0

Adding a cusom message to invoice

I have added pictures to the invoices and would like to add a custom message at the bottom. I typically write one, but that is getting tedious.

I would like to add:

(customer firstname), thanks for your order. if you have any questions, don't hesitate to call.

I will then add a pic of my signature below that.

The problem I am having is getting the customers name to appear.

I have figured out how to get the address by copying/pasting from the invoice itself but cannot figure out how to get just the first name.

Here is the code to get the name and address that I used:

<?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?>

I figured I could just substitute customers_firsname for Zen_address_format but that did not work. There must be some super secret way to get the correct customers first name to appear.

The first correct answer gets a big hug...

22 Feb 2011, 12:06 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Adding a cusom message to invoice

You might try this:

<div>Dear $EMAIL_FIRST_NAME $EMAIL_LAST_NAME,</div>
22 Feb 2011, 12:21 AM
#3
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Location:
Southern Maine
Posts:
268
Plugin Contributions:
0

Re: Adding a cusom message to invoice

That did not work either. I get: Dear $EMAIL_FIRST_NAME,
Thanks for the order!

We must be missing something. It is probably so simple we will hide our heads in shame :blush:.

22 Feb 2011, 1:05 AM
#4
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Location:
Southern Maine
Posts:
268
Plugin Contributions:
0

Re: Adding a cusom message to invoice

I simplified it. I just created a picture of my handwritten message including my sig and added it to the bottom of my admin/invoice.php file by inserting: <img src="/images/Dwaynes signature.jpg"> just before the </body> tag.

It would have been nice to get the customers name, but this looks good too.

Thanks!