Zen Cart Logo
Forums / Customization from the Admin / Adding Date of Birth to Orders Invoice

Adding Date of Birth to Orders Invoice

Locked

Views: 2,215

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
1 Aug 2006, 12:08 PM
#1
fmckinnon avatar

fmckinnon

New Zenner

Join Date:
Jul 2006
Posts:
84
Plugin Contributions:
0

Adding Date of Birth to Orders Invoice

Hey Ya'll -

I have a product which requires DATE_OF_BIRTH to process. As a result, I'm having to get all the order details off the "Orders" screen, then go back to the "Customers" area and find the DOB.

I want to have the Date of Birth display on the Orders Page. I added the following code just underneath the code which displays the Customer's Telephone # on the invoice, but although it DOES show the "Date of Birth" title, the actual "Date of Birth" does not show up:

The code I tried is here - what needs changing:
<tr>
<td class="main"><strong><?php echo ENTRY_DATE_OF_BIRTH; ?></strong></td>
<td class="main"><?php echo $order->customer['date_of_birth']; ?></td>
</tr>

Thanks!

2 Aug 2006, 10:25 PM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Adding Date of Birth to Orders Invoice

I want to have the Date of Birth display on the Orders Page.

In order to accomplish this, you'd need to edit your includes/classes/order.php file.

Warning: This is not an override file, so, do a backup of the file before making any modifications on it.

2 Aug 2006, 10:28 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Adding Date of Birth to Orders Invoice

If you do not need to store the customer's DOB on each order, it might be easier to just make a function to do a lookup of the customer's DOB and display that on the order ...