Re: Extra Fields for Customer Sign Up (Create Account) Page
This is what I had in the extrafield_defines.php...should I also add it to the last one in this row too?
define('ENTRY_EXTRAFIELD', 'EIN:');
define('ENTRY_EXTRAFIELD_ERROR', 'Please answer Extra Field.');
if (EXTRAFIELD_REQUIRED == 'true') {
define('ENTRY_EXTRAFIELD_TEXT', '*');
} else {
define('ENTRY_EXTRAFIELD_TEXT', '');
}
Re: Extra Fields for Customer Sign Up (Create Account) Page
In customers.php I had this for the field:
//start extrafield
define('ENTRY_EXTRAFIELD', 'EIN:');
//end extrafield
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hmm, that looks correct.
Do you have a link to your page so I can have a look?
Re: Extra Fields for Customer Sign Up (Create Account) Page
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hmm, the language definition definitely missing somehow. Try re-uploading the language file to the server, see if that fixes it. In fact, you can try re-uploading the whole package (with your changes made).
Re: Extra Fields for Customer Sign Up (Create Account) Page
Okay, and one other quick question, in the unzipped file you have under 1.3.8 another admin file...where should that go? I can't remember where I uploaded that now, I think to the main zc_admin directory.
Re: Extra Fields for Customer Sign Up (Create Account) Page
No, didn't work. And got this for MYSQL patch:
Error Failed: 3
Error ERROR: Cannot ADD column customers_extrafield because it already exists.
Error ERROR: Cannot insert configuration_key "DISPLAY_EXTRAFIELD" because it already exists
Error ERROR: Cannot insert configuration_key "EXTRAFIELD_REQUIRED" because it already exists
Warning Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.
Re: Extra Fields for Customer Sign Up (Create Account) Page
That folder is for Zen Cart 1.3.8 users only, you can remove it from your site.
That SQL error is totally normal - you have already installed the fields, so cannot add them again.
Other than the text, is the field working OK?
When you sign up for account, does the input go to the customer's information inside your Zen Cart admin, as well as to the customer's My Account page?
Re: Extra Fields for Customer Sign Up (Create Account) Page
Yes, it goes in the customer detail for admin, but still comes out as the "customer" update my info as customer:
ENTRY_EXTRAFIELD ENTRY_EXTRAFIELD_TEXT
Re: Extra Fields for Customer Sign Up (Create Account) Page
I would have to take a closer look at testing the code to see why it is not working on your site.
Instead, let's a do a quick fix like so... open /includes/templates/YOURTEMPLATE/tpl_modules_create_account.php
find this code:
Code:
<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>': ''); ?>
replace it with this:
Code:
<label class="inputLabel" for="extrafield"><?php echo EIN; ?></label>
<?php echo zen_draw_input_field('extrafield', '', 'id="extrafield"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">*</span>': ''); ?>
You can do a similar replacement in the customer account file.