Hi,
This is probably pretty easy, but then again I'm not very bright. I want to change the labels in the EXTRA FIELDS section to read something other than Field #1:, Field #2:, etc. Which files, and variables do I need to modify?
Printable View
Hi,
This is probably pretty easy, but then again I'm not very bright. I want to change the labels in the EXTRA FIELDS section to read something other than Field #1:, Field #2:, etc. Which files, and variables do I need to modify?
Hi Jackie, how can I make the extra fields read only? I would like show details of the extra fields in the account edit but cannot be edited. Thank you.
Sorry to all for my unavailability. I will do my best to check into the forum a little more often. I'll answer the last two questions, and if anyone else still needs help please let me know.
@lafaverp:
The field names are located in /includes/languages/engligh/extra_definitions/extrafield_defines.php
@Defanci:
In the following file: /includes/templates/YOUR_TEMPLATE/templates/tpl_account_edit_default.php
Find the following code:
And replace with this:Code:<!-- start extrafield -->
<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo zen_draw_input_field('extrafield', $account->fields['customers_extrafield'], 'id="extrafield"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<!-- end extrafield -->
An alternative would be to display just the text, instead of an input field:Code:<!-- start extrafield -->
<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo zen_draw_input_field('extrafield', $account->fields['customers_extrafield'], 'id="extrafield" readonly="readonly"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<!-- end extrafield -->
Code:<!-- start extrafield -->
<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo $account->fields['customers_extrafield']; ?>
<br class="clearBoth" />
<!-- end extrafield -->
It works, thank you.
I have an odd problem. I've been running the module for a few months and it's been working fine, but the past couple of weeks the required additional fields for some customers are blank in my database and in admin. I've tried to duplicate the problem but can't. I've tried to create an account in 5 different browsers and each one won't let me create an account without entering data in the required additional fields. When I enter the data and create the account the information shows in my admin just like it is supposed to. However some customers are creating accounts without having to enter that information or it's not storing it, but it isn't every customer. Can anyone point me in the direction of where to start?
Zen Cart v1.3.9h
Extra Field on Customer Sign Up Version: 1.0
Thanks,
Cindy
The required field functionality is based on Javascript. So if a user has Javascript turned off, or if they're a robot (ie. Googlebot or spambot), then they may be able to surpass the required fields.
In the future, we may build required fields into the PHP validation like the default Zen Cart fields, but it's not on the to-do list in the immediate future.
But, rest assured that your customer's information isn't being lost; they just aren't entering the info.
To make this mod compatible with php5.3+, I consider the following is all that needs to be changed.
admin\customers.php
Line 78
change toCode:if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_GET['current'] > 0 && $custinfo->RecordCount() > 0) {
However, if someone could please confirm.Code:if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_POST['current'] > 0 && $custinfo->RecordCount() > 0) {
Is it at all possible to merge this plugin with the Minimum Customer Account Information plugin? My shop currently offers virtual goods only, which makes the MCAI plugin valuable, but doesn't offer a way to require custom account details as this plugin does.
Yes, it is possible to merge the two plugins. Use a program such as WinMerge to determine the file differences, then copy one plugin's code into the other then upload to your server.
If you would like to add your extra field definitions to your order e-mails, you can follow this thread here:
http://www.zen-cart.com/showthread.p...nd-orders-area
The solution will be toward the end of the thread.
I was not able to solve adding the extra fields to the shipping information on each order page. At least now, I am able to have my extra fields display on every order e-mail which is what I was looking for. Hope this helps others.