Results 1 to 7 of 7

New Customer and shipping address problem

This is a discussion on New Customer and shipping address problem within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; When a new customer creates an account, for some reason the script is not automatically setting their address as the ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    5
    Rep Power
    0


    Default New Customer and shipping address problem

    When a new customer creates an account, for some reason the script is not automatically setting their address as the "primary" address. After creating the account and clicking on continue, nothing shows -- no name, no address -- nothing, hence no shipping info shows either. However, if you goto my account, edit shipping/address book, click on the edit button next to the address, the "set as primary shipping address" box is unchecked. If you check this, everything now works fine.

    Can someone tell me what I need to change so that this is no longer a problem? Many thanks.

  2. #2
    New Member
    Join Date
    Jan 2004
    Posts
    5
    Rep Power
    0


    Default

    Anyone?

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    5
    Rep Power
    0


    Default

    Has anyone out there had this problem? I have tried all that I know and I still can't get it to work right.

  4. #4
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    Default

    LSVF,
    Try checking the code in the file named create_account.php and around line 209 see if it compares with the following code:

    $address_id = tep_db_insert_id();

    tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'");

    tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())");
    You can insert an echo statement to check the value of $customer_id and $address_id before they get inserted. It will cause an error as the headers won't be able to be written, but you can check your sql syntax and the values to make sure they are getting properly assigned to the appropriate variables.

    If nothing else, hope this gets you on the right track.

    L8ter,
    Obewanz

  5. #5
    Anonymous
    Guest


    Default

    I am having the same problem, came here searching for an answer! I have tried everything!!!!

    The address is getting written to the databases - it is just not showing up when you place an order or other areas that it should show up.

    I compared my code to what obewanz posted above. I could see no difference.

  6. #6
    New Member
    Join Date
    Feb 2004
    Posts
    12
    Rep Power
    0


    Default

    Quote Originally Posted by Anonymous
    I am having the same problem, came here searching for an answer! I have tried everything!!!!

    The address is getting written to the databases - it is just not showing up when you place an order or other areas that it should show up.

    I compared my code to what obewanz posted above. I could see no difference.
    That last post was from me! I forgot to sign in before replying. I sure hope someone has a solution!!!

  7. #7
    Anonymous
    Guest


    Default

    Thanks Obewanz. After that didin't work, I just re-uploaded files I had changed and started all over again. All works now.

Similar Threads

  1. customer address required only
    By ogilirca in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 01-02-2007, 11:24 AM
  2. shipping address problem?
    By tom344 in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 06-21-2006, 05:24 PM
  3. New Shipping Address problem
    By mucholoco in forum osCommerce 2.2 Discussion
    Replies: 1
    Last Post: 04-30-2006, 05:52 PM
  4. customer cannot edit address
    By battleaxe in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 09-08-2005, 04:27 AM
  5. The ship to address is missing for the customer
    By shawnfunn in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 02-08-2005, 02:32 PM

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
  •