0

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

2

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
  • I tried your code in a order confirmation email template and got an error. Probably not the correct place for this code. After thinking it over I decided to create accounts for all customers because not doing so was going to require a lot of customizations. Now I just generate and capture the customer's password in hidden fields in the checkout. Much easier it seems. So I can't exactly say your code is the answer. Thanks thou! – Freejoy Apr 8 '16 at 6:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.