Page 8 of 50 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 491
  1. #71
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    You probably mis-followed instructions for your includes/modules/pages/account_edit/header_php.php file. There shouldn't be any errors when updating as long as one additional customers fields is active.

    In the mean time, the three questions from my post above were not answered yet.
    Last edited by TheOracle; 1 Jun 2007 at 07:43 PM.

  2. #72
    Join Date
    Feb 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Hi,

    Sorry to be late on my progress with the problems ive been facing... have been busy with other things.... anyway...

    i reinstalled all the files of this MOD (v1.12) just today. Now, i need some help with the admin/includes/languages/english/extra_definitions/additional_customers_fields.php

    I tried using the default/ demo values you have in there, but i don't see any fields on both the admin and the customer side.

    On the [ Create new additional customers fields ] page, the type and size is still empty.

    I tried using my own value but i cant see to get it to work. iIve read the install file over and over again but i know i'm still missing something.

    Lets say if i need one additional customer field "Business Name" then what would i need to do? Can you tell me which files to edit?


    Thanks,
    AP

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

    Default Re: Additional Customers Fields

    The demo fields does not exists physically since it would require useless modifications to your TABLE_CUSTOMERS table. However, from your admin/includes/languages/english/extra_definitions/additional_customers_fields.php file, these fields are just examples so that you can change them into your own created fields name (also needs, at least, one additional customers fields to be activated from your customers - > add customers fields page).

    As for the Create Additional Customers Fields page, are you sure to have uploaded the JS files (two files) under your admin/includes/javascript/mods/additional_customers_fields/english folder ?

    There is no files to edit others than the one under your admin's extra_definitions folder (in order to be shown under the admin's customers core file).

  4. #74
    Join Date
    Feb 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Quote Originally Posted by TheOracle View Post
    As for the Create Additional Customers Fields page, are you sure to have uploaded the JS files (two files) under your admin/includes/javascript/mods/additional_customers_fields/english folder ?
    core file).
    okay as far as these two files are concerned, well no i had not uploaded it to the path you gave above. I just downloaded the MOD and uploaded as it was after i did the file merge etc. In your MOD the path is admin/javascript/mods/additional_customers_fields/english folder.... and the new path you gave me is admin/includes/javascript/mods/additional_customers_fields/english folder...please chk....

    Secondly, now i do see the Type and Size and it does add an addiotional field, but i dont see the newly created field on both admin edit customer and new customer page... do i still need to manually create one field in the admin/includes/languages/english/extra_definitions/additional_customers_fields.php

    e.g. $additional_customers_fields_form_input_title['customers_business_name'] = array('Business Name: ');

    and also, what do you mean by also needs, at least, one additional customers fields to be activated from your customers - > add customers fields page

    I actually have one field already activated as i have the wholesale mod installed. so right now on the main page for the MOD i see:

    Name Index Options
    customers_whole 1 (i activated this field)


    Thanks,
    AP

  5. #75
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    okay as far as these two files are concerned, well no i had not uploaded it to the path you gave above. I just downloaded the MOD and uploaded as it was after i did the file merge etc. In your MOD the path is admin/javascript/mods/additional_customers_fields/english folder.... and the new path you gave me is admin/includes/javascript/mods/additional_customers_fields/english folder...please chk....
    Confirmed.

    Package re-uploaded. Thanks for the catch and sorry about that.

    do i still need to manually create one field in the admin/includes/languages/english/extra_definitions/additional_customers_fields.php

    e.g. $additional_customers_fields_form_input_title['customers_business_name'] = array('Business Name: ');
    Precisely. The arrays are considered like universal shortcut to avoid users to play into the admin/customer.php (which takes much longer and some skills to edit it). Meaning, each additional customers fields you will create must be added into the arrays as well.

    and also, what do you mean by also needs, at least, one additional customers fields to be activated from your customers - > add customers fields page

    I actually have one field already activated as i have the wholesale mod installed. so right now on the main page for the MOD i see:

    Name Index Options
    customers_whole 1 (i activated this field)
    This means that if you decide to deactivate all fields, your core field's output (not physically but on the page only) will also be affected. Activate at least one additional field so that the while loop statement doesn't get affected in your template file.

    If you already activated the field and shows as is from your store-front page, then you did exacly the steps that was required to do. Only thing for you to do is to assure that the arrays matches the exact same name as your physical created name from the admin section.

  6. #76
    Join Date
    Mar 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    I have managed to make it work on the customers part, but i had to make some modiffications:

    in includes\modules\your_template\create_account.php
    i have to add "," because tha sql command was incomplet:
    line 309:
    ------------------------------------------------------------------------------------------
    $sql = "update " . TABLE_CUSTOMERS . "
    set customers_default_address_id = '" . (int)$address_id . "'," . $additional_sql . "
    where customers_id = '" . (int)$_SESSION['customer_id'] . "'";
    ------------------------------------------------------------------------------------------
    and in the includes\templates\your_template\templates\tpl_modules_create_account.php
    i have to add a variable $temp because the fields repeated themselves. I don't know why but in the edit form is working ok. This is my modification:
    around line 123:
    ------------------------------------------------------------------------------------------
    // Note: The while loop below shall remain unique for 'All your additional customers fields you will add with the variable: '$account' .
    $temp = "";
    while (!$account->EOF) {

    if ($account->fields['field_name'] == "customers_buletin" && $temp != $account->fields['field_name']) {
    ?>
    <label class="inputLabel" for="customers_buletin"><?php echo ENTRY_CUSTOMERS_BULETIN_TITLE; ?></label> <?php echo zen_draw_input_field('customers_buletin', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_buletin', '40') . ' id="customers_buletin"'); ?>
    <br class="clearBoth" />
    <?php
    }
    .............................................................
    ------------------------------------------------------------------------------------------
    I used the files in the lastest of your pack, if you can look at it maybe you can make some modiffication.

  7. #77
    Join Date
    Mar 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    I'm, now trying to mage the admin part working, after i have some customers registrations with additional customers fields filled. When i try to edit one of the customers i receive this error:
    -----------------------------------------------------------------------------------------
    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in admin/customers.php on line 1209

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in admin/customers.php on line 1209

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in admin/customers.php on line 1211

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

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

    I have followed the steps and i have modified admin\includes\extra_configures\additional_customers_fields.php setting up the arrays for each field.

  8. #78
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    Which version of PHP are you using ?
    Which Zen-Cart version are you using ?
    Which mySQL version are you using ?
    (Note: These details can be found under your admin section - > tools - > server info link).
    Please answer those questions. You are requesting assistance and it is not obvious to make any corrections without having those details covered.

    Thanks.

  9. #79
    Join Date
    Mar 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Additional Customers Fields

    Sorry for that i forgot to mention,
    I'm using:
    Server OS: Linux server14.whmpanels.com 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 30 12:33:47 EST 2007 i686
    PHP Version: 5.2.0 (Zend: 2.2.0)
    Database: MySQL 4.1.21-standard-log
    HTTP Server: Apache/1.3.37 (Unix) PHP/5.2.0 mod_auth_passthrough/1.8 mod_log_bytes/1.2 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
    Zen Cart: v1.3.7 (Fresh Installation)

  10. #80
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Additional Customers Fields

    That's what I thought. You seem to be using PHP v5.2x. I'm using PHP v4.4x. I'm also using mySQL v4.1 and Zen-Cart v1.3.7. I can only determine that this is a PHP issue (since v5.2 version has already been reported as problematic from other topics).

    Did you installed the patches ? If so, do you have an FTP alternate server account I could use so that I could patch this live in order to make this MOD compatible with PHP v4 + v5 ? If you do, you may email me the infos (email from installation package). If not, install the patches (if you haven't already done so) and if it still doesn't work, then until I install PHP v5.x, I will not be able to fix out this particular problem due to incompatible PHP transcription comparing to PHP v4.

 

 
Page 8 of 50 FirstFirst ... 67891018 ... 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