Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2014
    Posts
    5
    Plugin Contributions
    0

    Default Customer Birth Date

    Hello all! How can I retrieve the customer's birth date from his account in checkout inside a payment gateway module?

  2. #2
    Join Date
    Aug 2014
    Posts
    5
    Plugin Contributions
    0

    Default Re: Customer Birth Date

    I tried stuff like $order->customer['dob'], $order->customer['date_of_birth'], $order->customer['date'] .... but nothing worked!! Any ideas?

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Customer Birth Date

    That's because the customer's DOB is not stored in the order. You could try something like:
    Code:
    $dob_info = $db->Execute ("SELECT customers_dob FROM " . TABLE_CUSTOMERS . " WHERE customers_id = " . $_SESSION['customers_id'] . " LIMIT 1");
    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!

 

 

Similar Threads

  1. v154 Date of Birth still in Customer Account Creation
    By edbeck in forum Customization from the Admin
    Replies: 15
    Last Post: 13 Jun 2015, 01:53 PM
  2. Issue w/ Customer Account Create DOB / Date of Birth Pulldown Mod
    By Donn in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 18 Feb 2009, 10:33 PM
  3. Replies: 2
    Last Post: 28 Dec 2007, 01:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR