Page 40 of 50 FirstFirst ... 303839404142 ... LastLast
Results 391 to 400 of 491
  1. #391
    Join Date
    Mar 2007
    Posts
    112
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Thanks for quick response. Actually, though, I did indeed make all the changes to all the files as instructed in your install procedures. Also just downloaded, compared and corrected the 3 files mentioned in your most recent post about "variable wasn't predefined first." Still have same problem.

    Details of the various file changes are (BTW, "pogo" is the name of my "your_template"):

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

    PHP Code:
    //---------------------------------------------------------------------------------
      
    define('BOX_CUSTOMERS_ADDITIONAL_CUSTOMERS_FIELDS''Additional Customer Fields Module');
      
    define('ADDITIONAL_CUSTOMERS_FIELDS_FORM_TITLE''Student Delivery Details');
      
    //--------------------------------------------------------------------------------- 
    and…

    PHP Code:
    $additional_customers_fields_form_input_title['customers_studentname'] = array('Student\'s Full Name: ');
      
    $additional_customers_fields_form_input_title['customers_studentdorm'] = array('Dorm Name: ');
      
    $additional_customers_fields_form_input_title['customers_studentroom'] = array('Room Number: ');
      
    $additional_customers_fields_form_input_title['customers_studentcell'] = array('Cellphone: ');
      
    $additional_customers_fields_form_input_title['customers_student_email'] = array('Email: ');
      
    $additional_customers_fields_form_input_title['customers_student_roommate'] = array('Roommate\'s Name: '); 
    FILE:
    …includes/languages/english/extra_definitions/pogo/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''Student\'s Details');
      
    define('HEADING_ADDITIONAL_CUSTOMERS_FIELDS_CREATE_ACCOUNT_TITLE''Student Delivery Information');
      
    // Defines the hobbies title name for the additional customers fields. 
    and…

    PHP Code:
    // Defines the customers student info for the additional customers fields.
      
    $additional_customers_fields_form_create_account_input_title['customers_studentname'] = array('Student\'s Full Name: ');
      
    $additional_customers_fields_form_create_account_input_title['customers_studentdorm'] = array('Dorm Name: ');
      
    $additional_customers_fields_form_create_account_input_title['customers_studentroom'] = array('Room Number: ');
      
    $additional_customers_fields_form_create_account_input_title['customers_studentcell'] = array('Cellphone: ');
      
    $additional_customers_fields_form_create_account_input_title['customers_student_email'] = array('Email: ');
      
    $additional_customers_fields_form_create_account_input_title['customers_student_roommate'] = array('Roommate\'s Name: '); 
    FILE:
    …includes/languages/english/extra_definitions/pogo/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''Student Details');
      
    define('HEADING_ADDITIONAL_CUSTOMERS_FIELDS_ACCOUNT_EDIT_TITLE''Student Delivery Information'); 
    and…

    PHP Code:
    // Defines the customers student info for the additional customers fields.
      
    $additional_customers_fields_form_account_edit_input_title['customers_studentname'] = array('Student\'s Full Name: ');
      
    $additional_customers_fields_form_account_edit_input_title['customers_studentdorm'] = array('Dormitory Name: ');
      
    $additional_customers_fields_form_account_edit_input_title['customers_studentroom'] = array('Room Number: ');
      
    $additional_customers_fields_form_account_edit_input_title['customers_studentcell'] = array('Cellphone: ');
      
    $additional_customers_fields_form_account_edit_input_title['customers_student_email'] = array('Email: ');
      
    $additional_customers_fields_form_account_edit_input_title['customers_student_roommate'] = array('Roommate\'s Name: '); 
    FILE: …includes/templates/pogo/templates/tpl_modules_create_account.php

    PHP Code:
    // We now set up additional customer fields for student info.                    
                  
    echo add_customers_fields_for_create_account('customers_studentname''zen_draw_input_field');
                  echo 
    add_customers_fields_for_create_account('customers_studentdorm''zen_draw_input_field');
                  echo 
    add_customers_fields_for_create_account('customers_studentroom''zen_draw_input_field');
                  echo 
    add_customers_fields_for_create_account('customers_studentcell''zen_draw_input_field'); 
                  echo 
    add_customers_fields_for_create_account('customers_student_email''zen_draw_input_field'); 
                  echo 
    add_customers_fields_for_create_account('customers_student_roommate''zen_draw_input_field');             
      
    // End of additional customer field for student info. 
    FILE:
    …includes/templates/pogo/templates/tpl_account_edit_default.php

    PHP Code:
    // We now set up an additional customer field for student name.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_studentname") {
                  echo 
    add_customers_fields_for_account_edit('customers_studentname''zen_draw_input_field');
              } 
    // End of additional customers fields for student name.
       
      // We now set up an additional customer field for student dorm.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_studentdorm") {
                  echo 
    add_customers_fields_for_account_edit('customers_studentdorm''zen_draw_input_field');
              } 
    // End of additional customers fields for student dorm.
              
      // We now set up an additional customer field for student room.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_studentroom") {
                  echo 
    add_customers_fields_for_account_edit('customers_studentroom''zen_draw_input_field');
              } 
    // End of additional customers fields for student room.
       
      // We now set up an additional customer field for student cell.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_studentcell") {
                  echo 
    add_customers_fields_for_account_edit('customers_studentcell''zen_draw_input_field');
              } 
    // End of additional customers fields for student cell.
              
      // We now set up an additional customer field for student email.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_student_email") {
                  echo 
    add_customers_fields_for_account_edit('customers_student_email''zen_draw_input_field');
              } 
    // End of additional customers fields for student email.
              
      // We now set up an additional customer field for student roommate.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_student_roommate") {
                  echo 
    add_customers_fields_for_account_edit('customers_student_roommate''zen_draw_input_field');
              } 
    // End of additional customers fields for student roommate. 
    I get no php errors, so assume my edits were acceptable to php at least. What is it I seem to be missing here?

    Thanks.
    RAB

    Why is it I'm always surprised when something actually works?

  2. #392
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    Snif. Finally someone who posts full details of what has been done and posted with PHP blocks code. 'scuse me - I have something in my eye.

    Also just downloaded, compared and corrected the 3 files mentioned in your most recent post
    Is that so ? Then why do I see duplicated entries from your create account template file ?

    PHP Code:
    // We now set up an additional customer field for student dorm.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_studentdorm") {
                  echo 
    add_customers_fields_for_account_edit('customers_studentdorm''zen_draw_input_field');
              } 
    // End of additional customers fields for student dorm.
              
      // We now set up an additional customer field for student room.
              
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_studentroom") {
                  echo 
    add_customers_fields_for_account_edit('customers_studentroom''zen_draw_input_field');
              } 
    // End of additional customers fields for student room. 
    includes/languages/english/extra_definitions/pogo/
    Perhaps I did missed something but the languages should not used subfolders within the extra_definitions folder. As you can see, from my package, there are no subfolders within that folder.

    Same for the account edit file.

    As for your templates folder though - seems fine except for the duplicated field entry.

  3. #393
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    As for this block, forgot to state that:

    PHP Code:
    // We now set up additional customer fields for student info.                    
                  
    echo add_customers_fields_for_create_account('customers_studentname''zen_draw_input_field');
                  echo 
    add_customers_fields_for_create_account('customers_studentdorm''zen_draw_input_field');
                  echo 
    add_customers_fields_for_create_account('customers_studentroom''zen_draw_input_field');
                  echo 
    add_customers_fields_for_create_account('customers_studentcell''zen_draw_input_field'); 
                  echo 
    add_customers_fields_for_create_account('customers_student_email''zen_draw_input_field'); 
                  echo 
    add_customers_fields_for_create_account('customers_student_roommate''zen_draw_input_field');             
      
    // End of additional customer field for student info. 
    does not contain any if statement conditions from your create account template. These are not suggested procedures but rather highly recommended.

  4. #394
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    FILE:
    …admin/includes/languages/english/extra_definitions/additional_customers_fields.php
    In addition from the above, this PHP file is no longer valid. Make sure to have followed the changelog and upgrade documentation due to the last changes that were made regarding this file. By now, you should not use it but rather eliminate it.

  5. #395
    Join Date
    Mar 2007
    Posts
    112
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Thanks for getting back to me. Let me answer each post specifically:

    #392 - I'm not sure what you mean by "duplicate entries". I added 6 new customer fields, so assumed that each field needed to be listed separately in the tpl create account file as well as the tpl account edit file. The php quote in your post shows 2 different fields, namely "studentDORM" and "studentROOM", so not sure what was duplicated.


    As far as subfolders in the extra_definitions folder, I saw that the Zen Cart Demo store has a "classic" folder in its extra_definitions folder, so assumed normal override rules and created the pogo folder with your create account and account edit files.

    #393 - Not sure what you're referring to re: if statements. There weren't any if statements in your examples (I followed your "cellphone" sample in every file) in the create account file, so I didn't add any. There were if statements in the account edit file, and as you can see I used them for all 6 new fields. So, don't understand what you're telling me here.

    #394 - I eliminated the admin/includes/languages/english/extra_
    definitions/additional_customers_fields.php file, as you suggested. Unfortunately, no change - the new fields still don't appear in the account edit screen in the store.

    I appreciate your help, and very much look forward to getting this mod to work, as I need to further customize the site by adding these new fields to the checkout order confirmation page and email.

    Thanks.
    RAB

    Why is it I'm always surprised when something actually works?

  6. #396
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    #392 - I'm not sure what you mean by "duplicate entries". I added 6 new customer fields, so assumed that each field needed to be listed separately in the tpl create account file as well as the tpl account edit file. The php quote in your post shows 2 different fields, namely "studentDORM" and "studentROOM", so not sure what was duplicated.
    Looked so identical but you're right. They are different it would seem.

    As far as subfolders in the extra_definitions folder, I saw that the Zen Cart Demo store has a "classic" folder in its extra_definitions folder, so assumed normal override rules and created the pogo folder with your create account and account edit files.
    If you have an extra folder under the extra_definitions folder and switch other than classic and no results are appearing, then it has nothing to do with this MOD since overrides are detected as is. Unless you did not configured your language settings properly under the admin section - > tools, it should work without problems.

    There weren't any if statements in your examples
    Incorrect. My example for the create account template, let's take cellphone, is showed as is:

    // We now set up an additional customer field for cellphones.
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_cellphone") {
    echo add_customers_fields_for_account_edit('customers_cellphone', 'zen_draw_input_field');
    } // End of additional customers fields for cellphone.
    You did not followed my instructions accordingly on this file.

    #394 - I eliminated the admin/includes/languages/english/extra_
    definitions/additional_customers_fields.php file, as you suggested. Unfortunately, no change - the new fields still don't appear in the account edit screen in the store.
    Sorry, this wasn't for the admin. It was meant for the store-front. Under the admin, it must be used. Althought ... should of been more clearer about that on my last post.

  7. #397
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    // We now set up an additional customer field for cellphones.
    if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_cellphone") {
    echo add_customers_fields_for_account_edit('customers_c ellphone', 'zen_draw_input_field');
    } // End of additional customers fields for cellphone.
    Kind of odd ... I posted an example of the account edit page rather than the create account page yesterday.

    You seem to be right - no if statements are involved from the create account template modules page. Good eye.

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

    Default Re: Additional Customers Fields

    Thanks for making this mod. Your contribution is exactly what I'm looking for. However, the link does not seem to be working. When I go to 'http://www.storm.ca/~oracle/, I get the message "No longer available !" It appears that your bandwidth might be over the limit. Is there anywhere else I can get this mod?

  9. #399
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    I found it in the download section, it seems to be working now. Thanks! url: http://tinyurl.com/yr38hz

  10. #400
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    I don't mean to flood this thread, but I had a dilemma that I solved today and I'd like to share the solution here in case anyone else is having a similar issue:

    Problem: new input fields do not show up in administrative backend (customers.php) when added via the mod unless the field has an assigned value in the database.
    Solution: comment out the following lines in includes/extra_functions/additional_customers_fields_functions.php:

    Line 68:
    PHP Code:
     if (!empty($cInfo->$key)) { 
    and the closing of the same if statement on line 75:
    PHP Code:
    // End of if statement. 
    Props to Oracle to going out of his way to help everyone with his mod.
    Now to make the form fields appear for new accounts... I'm sure that's documented here somewhere... I'll post again if I find anything that can save other zenners some time.
    Last edited by DarkGamer; 3 Jul 2007 at 12:24 AM.

 

 
Page 40 of 50 FirstFirst ... 303839404142 ... 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

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