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...