Magento – Getting guest customer DOB in Magento

customerguest-checkoutmagento-1.9orders

How can I get the date of birth of a guest customer? Where is this information in the database?

Best Answer

If you have Order object then you can get Guest Customer dob from getCustomerDob().

In ,magento database you can get guest customer dob from sales_flat_order table's customer_dob column.

Suppose,you have order then you can get guest customer dob from

$OrderObject=Mage::getMode('sales/order')->load('Order_Id');
$DOb=$OrderObject->getCustomerDob(); // yyyy-mm-dd hh:mm:ss
Related Topic