Adding customer phone number to invoice (as a token)

Posts: 48
Joined: 10/02/2007
Bug FinderGetting busy with the Ubercode.

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.

AttachmentSize
uc_order-phone_token.diff1.78 KB
customer.itpl-phone.diff1011 bytes
Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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