Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    3
    Plugin Contributions
    0

    Default Integrating with another System

    Hello,

    We are using the latest version of Zen-cart and it works fine as a stand alone product for us. The problem we are encountering is when a user makes an order from an account created automatically via our community/forum site. In order to create these accounts we do the following.

    1. Insert a new record into the customers table.
    2. The only fields we are putting in are first name, lastname, password, and email address.

    This works, as it allows the user to login and make orders.

    The problem we are finding is, when someone makes an order from one of these auto-generated accounts, the orders record is missing the email address and the billing address.

    First blush would seem we are not creating the user records correctly, or they are incomplete.

    Can anyone who has knowledge and/or experience in integrating zen cart please give any assistance? It would be greatly appreciated.

    Thanks,
    David

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Integrating with another System

    Quote Originally Posted by david3
    In order to create these accounts we do the following.

    1. Insert a new record into the customers table.
    2. The only fields we are putting in are first name, lastname, password, and email address.

    The problem we are finding is, when someone makes an order from one of these auto-generated accounts, the orders record is missing the email address and the billing address.

    First blush would seem we are not creating the user records correctly, or they are incomplete.
    David, you are correct in guessing that the user records are being created incomplete.

    You should be creating records like this:
    1. "customers" table
    2. "address_book" table, but update the customers table with the address_book_id after insertion
    3. "customers_info" table ... this record can be virtually blank initially

    Note: properly creating the address_book record requires also properly determining what "zone" the customer resides in. If this is not set properly, then taxes won't be calculated and in some cases shipping options will not be handled correctly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Integrating with another System

    Thank you greatly Dr Byte,

    I shall follow your directions and report back with my results.

    Sincreley
    David

  4. #4
    Join Date
    Aug 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Integrating with another System

    Success!

    Everything works fine now. Setting up the zones and ensuring that the defualt adderss id is set fixed my problems.

    Thanks DrByte

 

 

Similar Threads

  1. Help integrating Authorize.net ARB system to Zencart
    By ealpmx in forum Addon Payment Modules
    Replies: 0
    Last Post: 25 Jun 2009, 06:27 PM
  2. Integrating Zen Cart with XML feed? or with Tech Data
    By ahreno in forum General Questions
    Replies: 4
    Last Post: 28 Apr 2009, 09:20 PM
  3. import product data from another system database?
    By jvanree in forum General Questions
    Replies: 2
    Last Post: 18 Mar 2008, 01:14 PM

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