2 replies [Last post]
detour's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 10/02/2007
Juice: 150
Was this information Helpful?

A client asked if it was possible to include the customer's billing and delivery phone numbers on the printable invoice. I noticed that these fields were not available as tokens, so I added them to uc_order.module.

Attached below is a patch for uc_order.module to add these fields as tokens, and a patch for customer.itpl.php from uc_order/template that adds these fields to the invoice.

I hope this is helpful to others.

PreviewAttachmentSize
uc_order-phone_token.diff1.78 KB
customer.itpl-phone.diff1011 bytes
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Adding customer phone number to invoice (as a token)

Looks like a silly oversight on my part. I committed your patches to core (hope you don't mind Eye-wink ) and gave you a nice little badge... it's probably overdue anyways. Sticking out tongue

loocher's picture
Offline
Joined: 02/21/2009
Juice: 211
Hi I'd like to include the

Hi
I'd like to include the customer phone number in the admin order template. Can somebody advise how I do this please?