Page 41 of 50 FirstFirst ... 313940414243 ... LastLast
Results 401 to 410 of 491
  1. #401
    Join Date
    Mar 2005
    Posts
    167
    Plugin Contributions
    0

    red flag Re: Additional Customers Fields

    I am having a serious issue and ANY help is greatly appreciated!! I installed this mod but now when I go into my customers in zen admin and try to delete or edit any of them I get the following error:

    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/simetra/public_html/admin/includes/classes/object_info.php on line 29

    Warning: Variable passed to each() is not an array or object in /home/simetra/public_html/admin/includes/classes/object_info.php on line 30

    I don't know how to fix this please help!!!!

    Thanks,
    M E

  2. #402
    Join Date
    Mar 2005
    Posts
    167
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Also, as an additional note when I click edit on my customers all the fields are blank...all I have is their name now...

  3. #403
    Join Date
    Jul 2005
    Posts
    87
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Hello Oracle,

    I've updated all my files and took another shot at this MOD. The fields are showing up in the login form without repeating as before (hoorah! thanks!!!). However, I'm having problems with the fields in both the admin-end account edit and the customer-end account edit.

    On the admin side of account edit, the new fields do not show up at all. On the customer side of account edit, only the framed box with the "Additional Customer Fields" title shows up. I even added a new customer from the storefront and utilized the new fields, hoping that this would make the new fields register in the other two areas. No such luck.

    As seen below, my two fields are "In business since: " (customers_bussince) and "Federal ID#: " (customers_fedid).

    Here are my files so far containing the two fields:

    FILE:
    admin/includes/languages/english/extra_definitions/additional_customers_fields.php

    PHP Code:
    define('BOX_CUSTOMERS_ADDITIONAL_CUSTOMERS_FIELDS''Add Customers Fields');

    // Additional Customers Fields - Form Type Table Title For Whole Additional Window.
    define('ADDITIONAL_CUSTOMERS_FIELDS_FORM_TITLE''Additional Customers Fields'); 
    and

    PHP Code:
    $additional_customers_fields_form_input_title['customers_bussince'] = array('In business since: ');
    $additional_customers_fields_form_input_title['customers_fedid'] = array('Federal ID#: ');
    ?> 
    FILE:
    includes/languages/english/extra_definitions/additional_customers_fields_create_account.php
    PHP Code:
    // Defines the additional customers fields title in order to show in HTML forms.
    define('ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE''Additional Customers Fields');
    define('HEADING_ADDITIONAL_CUSTOMERS_FIELDS_CREATE_ACCOUNT_TITLE''');

    // Defines the in business since title name for the additional customers fields.
    $additional_customers_fields_form_create_account_input_title['customers_bussince'] = array('In business since: ');

    // Defines the federal id title name for the additional customers fields.
    $additional_customers_fields_form_create_account_input_title['customers_fedid'] = array('Federal ID#: ');
    ?> 
    FILE: includes/languages/english/extra_definitions/additional_customers_fields_account_edit.php
    PHP Code:
    // Defines the additional customers fields title in order to show in HTML forms.
    define('ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE''Additional Customers Fields');
    define('HEADING_ADDITIONAL_CUSTOMERS_FIELDS_ACCOUNT_EDIT_TITLE''');

    // Defines the in business since title name for the additional customers fields.
    $additional_customers_fields_form_account_edit_input_title['customers_bussince'] = array('In business since: ');

    // Defines the federal id title name for the additional customers fields.
    $additional_customers_fields_form_account_edit_input_title['customers_fedid'] = array('Federal ID#: ');
    ?> 
    FILE: includes/templates/mytemplate/templates/tpl_modules_create_account.php
    PHP Code:
    <?php // Additional customers fields begins here. ?>
    <?php 
    if (function_exists('check_add_customers_fields_records') && check_add_customers_fields_records()) { ?>
                <fieldset>                            
                    <legend><?php echo ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE?></legend>                
                    <?php
           
    // End of if statement.
            
            // We now set up an additional customer field for in business since.                        
                
    echo add_customers_fields_for_create_account('customers_bussince''zen_draw_input_field');
            
    // End of additional customer field for in business since.
            
            // We now set up an additional customer field for federal id.                        
                
    echo add_customers_fields_for_create_account('customers_fedid''zen_draw_input_field');
            
    // End of additional customer field for federal id.
            
            
    ?>
            </fieldset>         
    <?php
    // End of additional customers fields.
    FILE:
    …includes/templates/mytemplate/templates/tpl_account_edit_default.php
    PHP Code:
     // Additional customers fields begins here.
            
    while (!$account->EOF) {                                                            
            
            
    // We now set up an additional customer field for in business since.                
            
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_bussince") {            
                echo 
    add_customers_fields_for_account_edit('customers_bussince''zen_draw_input_field');
            } 
    // End of additional customers fields for in business since.     
            
            // We now set up an additional customer field for federal id.                
            
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_fedid") {            
                echo 
    add_customers_fields_for_account_edit('customers_fedid''zen_draw_input_field');
            } 
    // End of additional customers fields for federal id.     
            
                
    $account->MoveNext();
            } 
    // End of while statement.
            
            // End of additional customers fields. 
    Any ideas as to why this is not working? If more info is needed, please let me know.

    Thank you!

  4. #404
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    TheOracle,
    Thanks for your MOD, time and efforts. I truely appreciate your help. As you once tried before to help me have the additional customers fields show up on the invoices that I print from admin>customers>orders>invoice and it was not successful due to the fact that I was running on a very slow server. Well, I have transfered my site to a faster server and I am hoping you are still willing to help me with this challenge.

  5. #405
    Join Date
    Mar 2005
    Posts
    167
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    I got it figured out!!! I did a clean install of zen in another directory and then imported my database into that. I then took the customer.php from the clean install and overwrote the customer.php on my original install. Now all my customer info is there and it is working perfectly.

  6. #406
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Quote Originally Posted by Creative
    On the admin side of account edit, the new fields do not show up at all. On the customer side of account edit, only the framed box with the "Additional Customer Fields" title shows up. I even added a new customer from the storefront and utilized the new fields, hoping that this would make the new fields register in the other two areas. No such luck.
    Creative:

    Hm. I'm having the same issues. The commented out lines fixed the admin side for me (see my previous post), but the form fields were only absent there when the associated field was empty in the database.

    I'm having the same problem you are with the user's edit account page. No fields show up, even though I copied the array syntax exactly.

    The user's create new account page shows the form fields, but something is preventing me from displaying either a drop-down menu (disappears) or a second radio button field (displays, but crashes into previous radio button field) after the first radio button field.

    Time for some more zen. If you find out what's going on, please share your solution; I'll do the same. Good luck!

  7. #407
    Join Date
    Mar 2005
    Posts
    167
    Plugin Contributions
    0

    red flag Re: Additional Customers Fields

    Please help!!!!

    I installed this mod before it was updated recently and then went in and reuploaded the new mod. It was giving me many problems so I uninstalled it, or I thought I did. I went into the recent contrib and backtracked all the files and folders it uploaded and deleted them.

    Now, it is off my admin BUT I cannot create any accounts nor can any of my customers log in to their accounts. I was getting an error message but now if you create a new account the screen blinks but brings you back to the blank registration page as if you didnt type anything in but no error and if you try to log in with an already made account it tells you that it doesnt recognize your email or password....

    The error message I was getting but am no longer getting was:
    1054 Unknown column 'moderators_level' in 'field list'
    in:
    [INSERT INTO customers (moderators_level, customers_firstname, customers_lastname, customers_email_address, customers_nick, customers_telephone, customers_fax, customers_newsletter, customers_email_format, customers_default_address_id, customers_password, customers_authorization, customers_dob) VALUES ('1', 'My Name', 'myemail', '', '***-***-****', '', '0', 'HTML', '0', '9c1fa92a3095a49f656eb1ae1b7412c8:3f', '0', '19781209')]

    Now it is just the blank registration screen
    How do I get this working and the mod removed completely so it is not affecting my customer fields????

    PLEASE HELP!!

  8. #408
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Simetra:

    Looks like I'm not the only one. As soon as I find another bug, it appears someone else is having the same issue.

    Someone else previously on this thread had the same problem and it was suggested that they installed a mod that is causing it. That is not the case. I had a clean installation of Zen Cart.

    Pretty much the mod is trying to write into a field that doesn't exist. I fixed this issue by adding a field to 'customers' called 'moderators_level' using phpmyadmin, and users are able to create accounts again. I just want to be sure I'm not skipping some needed functionality. Should this data should be written to a different table, or was this mod was originally developed to work with another?

  9. #409
    Join Date
    Mar 2005
    Posts
    167
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    How do I delete this mod from my zen cart without messing anything up? I would like to completely uninstall it.

    Anyone?

  10. #410
    Join Date
    Jul 2005
    Posts
    87
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Simetra,

    I had the same "moderator" error message. Someone else suggested a fix for a similar if not same error previously in this thread. I followed their suggestion and up to this point have not had the same error.

    In your /includes/modules/your_template/create__account.php there is a line that reads 'moderators_level' => 1. I commented out that line (never really like to delete in case I've made a mistake or it will be needed at a later time), and it seems to have fixed the error message.

    If you want to completely uninstall this MOD, I've done so by following all the paths in Oracle's folder hierarchy and deleting those files. If you've used Zen's "override" system, you shouldn't run into the problem of deleting anything that is needed. Or if the store is not live yet (meaning there is little to no customized info), you could replace any files accidentally overwritten with Zen's default install files.

    DarkGamer,

    I did read your post at the end of the afternoon after I had made my post. I'll try commenting out the lines suggested and see what happens. Will keep you updated if/when I stumble onto any solutions to the problems we are both experiencing.

 

 
Page 41 of 50 FirstFirst ... 313940414243 ... LastLast

Similar Threads

  1. Additional Customers Fields
    By mizio78 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 12 Aug 2011, 09:27 AM
  2. Additional Customers Fields Addon SQL problem
    By Dasha in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Sep 2008, 05:41 PM
  3. Additional customers fields v2-55 Question
    By balonglong78 in forum General Questions
    Replies: 0
    Last Post: 26 May 2008, 04:04 AM
  4. Need help installing "additional customers fields" module
    By CKlemow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Sep 2007, 03:22 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