Forums / Managing Customers and Orders / Create a requested field in registration account

Create a requested field in registration account

Locked

Views: 2,767

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
28 Jul 2006, 5:06 PM
#1
rosponina avatar

rosponina

New Zenner

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!!!!

28 Jul 2006, 6:56 PM
#2
aeonmedia avatar

aeonmedia

Suspended

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') . ' ' . (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!

28 Jul 2006, 7:46 PM
#3
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

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. :wink2:

28 Jul 2006, 8:13 PM
#4
aeonmedia avatar

aeonmedia

Suspended

Join Date:
Jul 2006
Posts:
28
Plugin Contributions:
0

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?

28 Jul 2006, 8:19 PM
#5
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

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. :wink2:

28 Jul 2006, 8:22 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

31 Jul 2006, 8:15 PM
#7
aeonmedia avatar

aeonmedia

Suspended

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?