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!!!!
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!
Re: Create a requested field in registration account
Quote:
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:
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?
Re: Create a requested field in registration account
Quote:
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:
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 ...
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?