Page 2 of 17 FirstFirst 123412 ... LastLast
Results 11 to 20 of 170
  1. #11
    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', '');
    }

  2. #12
    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

  3. #13
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    541
    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?
    Jackie Taferner - JT Website Design
    Custom Website Design and Ecommerce
    **Support the community. Don't Private Message, post your questions in the forum.**

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

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

    https://sprinkspets.com/shop/index.php?main_page=login

    Thank you, I'm a newbie with ZenCart!

  5. #15
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    541
    Plugin Contributions
    18

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

    Hmm, the language definition definitely missing somehow. Try re-uploading the language file to the server, see if that fixes it. In fact, you can try re-uploading the whole package (with your changes made).
    Jackie Taferner - JT Website Design
    Custom Website Design and Ecommerce
    **Support the community. Don't Private Message, post your questions in the forum.**

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

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

    Okay, and one other quick question, in the unzipped file you have under 1.3.8 another admin file...where should that go? I can't remember where I uploaded that now, I think to the main zc_admin directory.

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

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

    No, didn't work. And got this for MYSQL patch:

    Error Failed: 3
    Error ERROR: Cannot ADD column customers_extrafield because it already exists.
    Error ERROR: Cannot insert configuration_key "DISPLAY_EXTRAFIELD" because it already exists
    Error ERROR: Cannot insert configuration_key "EXTRAFIELD_REQUIRED" because it already exists
    Warning Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.

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

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

    That folder is for Zen Cart 1.3.8 users only, you can remove it from your site.

    That SQL error is totally normal - you have already installed the fields, so cannot add them again.

    Other than the text, is the field working OK?

    When you sign up for account, does the input go to the customer's information inside your Zen Cart admin, as well as to the customer's My Account page?
    Jackie Taferner - JT Website Design
    Custom Website Design and Ecommerce
    **Support the community. Don't Private Message, post your questions in the forum.**

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

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

    Yes, it goes in the customer detail for admin, but still comes out as the "customer" update my info as customer:


    ENTRY_EXTRAFIELD ENTRY_EXTRAFIELD_TEXT
    Last edited by Cyndi; 4 Feb 2011 at 12:53 AM.

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

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

    I would have to take a closer look at testing the code to see why it is not working on your site.

    Instead, let's a do a quick fix like so... open /includes/templates/YOURTEMPLATE/tpl_modules_create_account.php

    find this code:
    Code:
    <label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
    <?php echo zen_draw_input_field('extrafield', '', 'id="extrafield"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>
    replace it with this:
    Code:
    <label class="inputLabel" for="extrafield"><?php echo EIN; ?></label>
    <?php echo zen_draw_input_field('extrafield', '', 'id="extrafield"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">*</span>': ''); ?>
    You can do a similar replacement in the customer account file.
    Jackie Taferner - JT Website Design
    Custom Website Design and Ecommerce
    **Support the community. Don't Private Message, post your questions in the forum.**

 

 
Page 2 of 17 FirstFirst 123412 ... 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

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