Hello all! How can I retrieve the customer's birth date from his account in checkout inside a payment gateway module?
Hello all! How can I retrieve the customer's birth date from his account in checkout inside a payment gateway module?
I tried stuff like $order->customer['dob'], $order->customer['date_of_birth'], $order->customer['date'] .... but nothing worked!! Any ideas?
That's because the customer's DOB is not stored in the order. You could try something like:
The date-of-birth (YYYY-MM-DD HH:MM:SS) is available from $dob_info->fields['customers_dob'] ... only if the script is run for a page that required the customer to be logged in!Code:$dob_info = $db->Execute ("SELECT customers_dob FROM " . TABLE_CUSTOMERS . " WHERE customers_id = " . $_SESSION['customers_id'] . " LIMIT 1");
Bookmarks