Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: New customer account generates error

    Take a screenshot of customer_info and customers so we can see them both in their current state.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: New customer account generates error

    Just do this through admin->tools->Install sql patches

    insert into customers (customers_id) values (10);
    insert into customers_info (customers_info_id) values (10);

    (assuming your highest number in either table is less than 10; otherwise bump it to 1 higher than the highest number).
    Then try creating an account using the shopping cart account creation process.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Nov 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: New customer account generates error

    Quote Originally Posted by swguy View Post
    Just do this through admin->tools->Install sql patches

    insert into customers (customers_id) values (10);
    insert into customers_info (customers_info_id) values (10);

    (assuming your highest number in either table is less than 10; otherwise bump it to 1 higher than the highest number).
    Then try creating an account using the shopping cart account creation process.
    Nope, same error with id 11 now.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: New customer account generates error

    None of this should happen with unaltered core code, since it goes to great lengths to keep all the records in sync with each other.

    You said you were deleting a "test customer". Did you first delete the orders associated with that customer?
    .

    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.

  5. #5
    Join Date
    Nov 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: New customer account generates error

    The order was deleted along with the test customer.
    I finally got around to compare the current customer.php with the original the only difference is the statements inserted by the customer referral add-on (see the following):


    PHP Code:
    <!-- bof rmh -->
                    <td class="dataTableHeadingContent" align="left" valign="top">
                      <?php echo (($_GET['list_order']=='id-asc' or $_GET['list_order']=='id-desc') ? '<span class="SortOrderHeader">' TABLE_HEADING_REFERRED_BY '</span>' TABLE_HEADING_REFERRED_BY); ?><br>
                      <a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=id-asc''''NONSSL'); ?>"><?php echo ($_GET['list_order']=='id-asc' '<span class="SortOrderHeader">Asc</span>' '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>&nbsp;
                      <a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=id-desc''''NONSSL'); ?>"><?php echo ($_GET['list_order']=='id-desc' '<span class="SortOrderHeader">Desc</span>' '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
                    </td>
    <!-- eof rmh -->
    PHP Code:
    //rmh referral start
          
    $source_query "select customers_info_source_id  from " TABLE_CUSTOMERS_INFO " where customers_info_id = '" $customers->fields['customers_id'] . "'";
          
    $source $db->Execute($source_query);
          
    $entry_referral zen_get_sources_name($source->fields['customers_info_source_id'], $customers->fields['customers_id']);
    //rmh referral end 
    PHP Code:
    <!-- bof rmh -->
                    <td class="dataTableContent"><?php echo $entry_referral?></td>
    <!-- eof rmh -->

  6. #6
    Join Date
    Nov 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: New customer account generates error

    Here is a screen shot of the customers table.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Picture 3.jpg 
Views:	48 
Size:	19.1 KB 
ID:	9991   Click image for larger version. 

Name:	Picture 4.jpg 
Views:	41 
Size:	4.9 KB 
ID:	9992  

 

 

Similar Threads

  1. v150 New Customer Account Creation page is giving error...
    By anandbir in forum General Questions
    Replies: 1
    Last Post: 18 May 2012, 01:26 PM
  2. Purchase Generates a New Password
    By JimN000 in forum General Questions
    Replies: 4
    Last Post: 19 Oct 2010, 05:41 AM
  3. New Customer Account Problem
    By julia44 in forum Managing Customers and Orders
    Replies: 18
    Last Post: 19 May 2007, 02:00 AM
  4. Error deleting customer account
    By baschwar in forum Managing Customers and Orders
    Replies: 0
    Last Post: 13 Jun 2006, 06:16 AM

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