Re: Extra Fields for Customer Sign Up (Create Account) Page
Quote:
Originally Posted by
jackie.taferner
shellbell, to move the field open this file:
includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
and move this code to the section you want the field in:
Code:
<!-- start extrafield -->
<?php
if (DISPLAY_EXTRAFIELD == 'true') {
?>
<br class="clearBoth" />
<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>': ''); ?>
<?php
}
?>
<!-- end extrafield -->
Jackie, thanks for this great mod.
This above code does it move all the extra fields or just one? I would like to use 2 or maybe 3 extra fields but 1 needs to be below company name, like VAT number or so.
For me the above cut and paste is not 100% clear for me, can you help?
Thanks
Regards from Holland
Henk
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hi rmcp, That code moves just one of the fields. You will see additional sets of code for EXTRAFIELD2, EXTRAFIELD3, and so on. Just find the code for the Company name, then cut and paste the EXTRAFIELD code right below it.
If you want this field moved on both the Create Account page and the Edit Account page, make sure you change both templates located in /includes/templates/yourtemplate/templates/
Re: Extra Fields for Customer Sign Up (Create Account) Page
Thanks for the reply
Just to be on the save side :
>>>>>>>>>>>>>>>>>>>>>>>>>
<?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
HERE IS WERE I PUT The <!-- start extrafield -->the extra fiels<!-- end extrafield -->?
</fieldset>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
And what do you mean with both files? I do not see any company field in the tpl_account_edit_default.php file
What I want to add are 2 fields, one field below Company name that will be VAT number and also a field were my customers can fill in the model of Motorcycle they use for ordering parts.
Regards
Henk
Re: Extra Fields for Customer Sign Up (Create Account) Page
Please upload your files and I will edit them for you.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hi Jackie,
Thanks a lot!
I have not changed anything to your files yet so you might as well use the original ones?
If not which file dou you need?
Regards
Henk
Re: Extra Fields for Customer Sign Up (Create Account) Page
I would need both of your files located in: /includes/templates/yourtemplate/templates/
Which version of the plugin are you using?
Re: Extra Fields for Customer Sign Up (Create Account) Page
Sorry for the late answer Jackie
I am sorting out a other problem first ; by some strange reason not all orders show in the admin, id I search for order number I find it and can change it or print invoice but not all orders show in admin orders like you normaly see..........
I'll be back asap with the extra line help
Thanks
Henk
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hi Jackie
Thanks for the plugin, do you know of any issues with the how did you hear about us plugin as your plugin seems to override HDYHAU plugin.
I had how did you hear about us up and running but it is lost.
I am running V2.0 extra fields on Zencart V1.51
Any suggestions would be appreciated.
Peter
www.tenthilltoys.com.au
Re: Extra Fields for Customer Sign Up (Create Account) Page
Yes, this module affects the same files so you will need to compare the files from each module and merge them using a tool such as WinMerge.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Thanks for the fast reply Jackie
I have merged the create account and the customers files, These seem to be the only file that needed doing.
uploaded again, cleared the cache on the browser. but no extra drop down menu.
I will just keep working away at it. I would prefer to have your plugin as it suits me better.
Thanks again
Peter