Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2006
    Posts
    1
    Plugin Contributions
    0

    Create a requested field in registration account

    Good evening everybody,
    I've a problem.
    I need to create in the registration of a new account an other requested field. How are the passages to create a new requested field??? And how are the files that I must modify??? And also can I render requested the field "suburb"? Which are the files that I must modify???
    Thanks a lot!!!!

  2. #2
    Join Date
    Jul 2006
    Posts
    28
    Plugin Contributions
    0

    Re: Create a requested field in registration account

    I, too, have this issue. I was able to get this far, but hit a brick wall. Here's what I have done so far:

    1. add a field in the database using phpmyadmin.

    2. in languages/english.php, I added this code - on or around line 204 -
    // add to the registration page - for either EIN # or sales tax Licence #
    define('FED', 'fed');

    3. in the includes/templates/template_default/template/tpl_create_account_default.php - on line 79 - i added this code:

    <td class="main"><?php echo FED; ?></td>
    <td class="main"><?php echo zen_draw_input_field('fed') . '&nbsp;' . (zen_not_null(FED) ? '<span class="inputRequirement">' .

    But there seems to be something missing. from this point - i have not found where to go from here. I even tried putting some html in that step, number 3 - and the changes I made do not appear on the screen.

    None of the changes i made in step 3 appear on the screen. Is there another page - a template page - where i have to follow through?

    thanks to anyone out there who can help me!

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

    Default Re: Create a requested field in registration account


    Is there another page - a template page - where i have to follow through?
    Yes. From includes/modules/create_account.php file.

    Note: This is not an override file. If you intend to modify that file, first create a backup before doing so and, then, create another backup of that file before the next Zen-Cart upgrade is being released.

  4. #4
    Join Date
    Jul 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Create a requested field in registration account

    thank you! thank you! I was able to do this - but I found no such file in the location you said. Maybe there is something wrong with my install cause it's missing? anyway - i did make this addition to another file by that same name. it's located at:

    includes/languages/english/create_account.php/

    // ein tax stuff rlos
    define('FED', 'Please enter your EIN or Sales Tax License Number');

    However - for whatever reason - there seems to be a real weird thing going on. None of my changes are showing up. The new field does not appear when view it from the browser.

    Any further suggestions?

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

    Default Re: Create a requested field in registration account


    I found no such file in the location you said
    If so, it's because you're not using the latest version of Zen-Cart. You should upgrade to the latest version for fixing prior issues that were encountered in the past. In addition, for your case, you will find the file located under the folder I specified under that version (starting at v1.3x).

    Just be sure to backup your whole store (+ database) before proceeding to the upgrade and follow the docs's upgrade instructions before applying the upgrade wizard from zc_install folder from your web browser.

    You can download the package from the home / downloads section of this site.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Create a requested field in registration account

    Actually, the file:
    /includes/modules/create_account.php

    file can be overriden in your templates and overrides directory:
    /includes/modules/your_templates_dir/create_account.php

    Using the templates and overrides is always the best method ...

    Look for the /classic directories ... usually this is an indicator of the location where your templates and overrides directory can exist ...

    Most all files have been updated for this for some time now ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jul 2006
    Posts
    28
    Plugin Contributions
    0

    Re: Create a requested field in registration account

    thanks again for the wonderful help. I have now been able to upgrade and get things moving in the right direction again. Now that I have the database being updated by the user side - i need to now carry that through to the admin side.

    is there documentation I could access - i'd pay for it - that would move me forward?

 

 

Similar Threads

  1. Replies: 5
    Last Post: 9 Aug 2012, 09:57 PM
  2. Modifying Create Account Registration Form - can it be done?
    By shags38 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 17 Nov 2011, 04:33 AM
  3. Create account Form field allign
    By manfer72 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jan 2008, 12:01 AM
  4. Registration (Create Account) Levels
    By Kandas in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 30 Nov 2007, 01:57 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