Magento Forum

How to get Date of Birth from Sales/Order Entity? 
 
jjfattz
Jr. Member
 
Total Posts:  14
Joined:  2012-11-21
 

EDIT: I am re-posting this question in the programming section of the forum.  If any admin sees this, please delete this post if you want.  Thanks.

I need to make a small edit to an extension that creates an object like this:

$order Mage::getModel("sales/order");

The extension is extracting billing information like this from the object:

$fname $order->getBillingAddress()->getData("firstname");
$lname $order->getBillingAddress()->getData("lastname");
$city $order->getBillingAddress()->getData("city");
// etc

My question is can I extract the Date of Birth of the customer from this order object and if so how?  Basically, what I need is the date of birth for the customer.  If I need to access that information in another fashion, please let me know.  I have been searching for hours and I cannot find anything concrete on Google or in the Magento documentation.  Please let me know if you need any more information.

Thank you for your help

 
Magento Community Magento Community
Magento Community
Magento Community
 
VnEcoms
Sr. Member
 
Avatar
Total Posts:  121
Joined:  2012-09-13
Vietnam
 

Try with this code:

$order->getData('customer_dob');
//or
$order->getCustomer()->getDob();
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top