Page 1 of 4 123 ... LastLast
Results 1 to 10 of 198

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Ahh... sorry that must have been personalized to the name of their custom field. If you installed the module exactly as I built it, the custom field will be named "customers_extrafield"

    So, I *think* this would be the correct code instead. Give it a shot and see what happens :)

    Add this code at line 28:
    Code:
    $oID = zen_db_prepare_input($_GET['oID']);
    //start extrafield
    $sql = "SELECT o.customers_id, c.customers_extrafield from " . TABLE_ORDERS . " o, " . TABLE_CUSTOMERS . " c WHERE c.customers_id= o.customers_id and o.orders_id = '" . $oID . "'";
    $chk_customers_extrafield = $db->Execute($sql);
    $customers_extrafield = $chk_customers_extrafield->fields['customers_extrafield']; 
    //end extrafield
    so now you can use the $customers_extrafield variable where you want, for example in one of the table cells:
    Code:
    <?php echo ENTRY_EXTRAFIELD; ?></b><?php echo ' ' . $customers_extrafield; ?>

  2. #2
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    63
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    And it worked!
    Thank you so much!

  3. #3
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Using V. 1.3.9, fresh install

    Almost worked perfect for me, got this on the sign-up page:

    EIN Number: (with a box)
    ENTRY_EXTRAFIELD (box) ENTRY_EXTRAFIELD_TEXT

  4. #4
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Cyndi,

    Try step 3 of the installation process:

    3. Open the 2 language files and define the names of your new field:
    /includes/languages/english/extra_definitions/extrafield_defines.php
    /admin/includes/languages/english/customers.php

  5. #5
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    I'll try again, I thought I did that but I may have mistyped too...be right back and thanks for the awesome quick answer.

  6. #6
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    This is what I had in the extrafield_defines.php...should I also add it to the last one in this row too?

    define('ENTRY_EXTRAFIELD', 'EIN:');
    define('ENTRY_EXTRAFIELD_ERROR', 'Please answer Extra Field.');

    if (EXTRAFIELD_REQUIRED == 'true') {
    define('ENTRY_EXTRAFIELD_TEXT', '*');
    } else {
    define('ENTRY_EXTRAFIELD_TEXT', '');
    }

  7. #7
    Join Date
    Jan 2011
    Location
    US
    Posts
    37
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    In customers.php I had this for the field:

    //start extrafield
    define('ENTRY_EXTRAFIELD', 'EIN:');
    //end extrafield

  8. #8
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Hmm, that looks correct.

    Do you have a link to your page so I can have a look?

  9. #9
    Join Date
    Mar 2010
    Location
    New York
    Posts
    10
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Hi. I am using 1.3.9h and am trying to install the Extra fields. It doesn't seem to be working. I believe that I followed the instructions properly but nothing is showing up. One thing that I noticed is that I have a mandatory field below the "country" field with a blank heading. This should probably be the "state" field. Could this mod have caused this? I can see this causing problems when someone tries to sign up. Please help.

    My site is www.longfellowscoffee.com.

  10. #10
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Please try installation again, make sure you do ALL the steps!

    ================= INSTALLATION =====================

    1. BACKUP BACKUP BACKUP. (cant say it enough :)

    2. Change the name of /YOUR_TEMPLATE/ folders to the name of your template folder (see above for list of files)

    3. Open the 2 language files and define the names of your new field:
    /includes/languages/english/extra_definitions/extrafield_defines.php
    /admin/includes/languages/english/customers.php

    4. Upload all contents to your main Zen Cart store directory

    5. Go to Admin > Tools > Install SQL Patches, and paste the content of the install.sql file

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v150 additional create account fields for wholesale customer
    By newbieOK in forum General Questions
    Replies: 2
    Last Post: 23 Aug 2012, 04:17 AM
  2. Extra Fields for Customer Sign Up
    By divagal in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 31 Jan 2012, 11:51 PM
  3. Create Account - modify existing fields or add extra fields?
    By sopretty in forum General Questions
    Replies: 4
    Last Post: 30 Jul 2010, 08:26 PM
  4. Extra Box on Account Sign-up Page
    By paulssports in forum General Questions
    Replies: 6
    Last Post: 1 Dec 2006, 05:50 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