Re: Extra Fields for Customer Sign Up (Create Account) Page
This mod seems to be great, but I have difficulties to get customer data saved during the account creation. All fields display correctly during account creation, but extrafield content doesn't save.
However extrafields can be edited and saved via account page and admin page.
Could you tell me whats causing this?
Re: Extra Fields for Customer Sign Up (Create Account) Page
It sounds like you may be missing a file from the installation. Did you upload the correct version for your ZenCart? The folders are marked 1.3.9 and 1.5.0. Also, did you change the name of YOUR_TEMPLATE folders to match your template? These are located in both the modules and templates folders. Once you have confirmed both of these items, re-upload the module in case any files are missing.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Thanks for the fast reply, Jackie! :)
I have zc 1.5.1 and installed version for 1.5. I believe I made all needed uploads / merged changes. I've double checked catalog side canges. I'm using Hope template and replaced YOUR_TEMPLATE to that template folder name.
I tested this module on my test store that is 1.5.1 without any mods installed. I Copied files from 1.5 folder and it worked after I had copied template files to classic and templare_default folders.
Re: Extra Fields for Customer Sign Up (Create Account) Page
It sounds like this is a conflict with your custom theme. Try comparing the files in this mod with your existing theme. Use a program like WinMerge to merge the changes into your theme and make sure you overwrite the files on the server.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Thanks for the info! I'll do comparison again and see if I can make it working with my template.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hello Jackie!
I got it working now! :) There was a conflict with Fast and Easy Checkout -module (sorry that I forget to mention that). That module has it's own file for creating an account (fec_create_account.php).
Originally this file needs to be modified/replaced for this module to work:
includes/modules/custom_template/create_account.php
But if you have fast and easy checkout -module installed, you have to do similiar merging to this file too:
includes/modules/fec_create_account.php
Re: Extra Fields for Customer Sign Up (Create Account) Page
Thanks for posting your solution. I hope this helps others with the same module(s) installed.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hi Jackie,
I have a really stupid question. How can I tell if a customer wants to have access to wholesale side of my store? Is it supposed to show
somewhere in the "admin" section? I can only find it under the specific customer.
Other question:
I added the radio button to the My Account via includes/templates/classic/templates/tpl_account_edit_default.php
Could you check if it is correct?
<?php
if (DISPLAY_EXTRAFIELD == 'true') {
?>
<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo zen_draw_radio_field('extrafield', 'yes', '', 'id="extrafield-yes"') . '<label class="radioButtonLabel" for="extrafield-yes">Yes</label>' . zen_draw_radio_field('extrafield', 'no', '', 'id="extrafield-no"') . '<label class="radioButtonLabel" for="extrafield-no">No</label>' . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>
Thank you very much.
Satu
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hi Satu,
No such thing as a stupid question. You are correct, the only place to see the field is on the individual customer page. If you want it to show up on the main customer list, you would need to make a new column for that. I suggest opening customers.php file and search for extrafield. From there, you can figure what needs to be copied to your new column.
The radio button code looks ok at first glance. Did you upload it to your server and see if it works?
Re: Extra Fields for Customer Sign Up (Create Account) Page
Hi Jackie,
Thanks for getting back to me so quickly!
I did upload the radio button code to the server and it did work. I guess I could remove the * so that it does not look like it is required.
I do not know php that well that I could create a column anywhere, and the customers.php is crazy with modules (very scary).
I forgot to tell you that I have Zen Cart 1.51 and the Extra fields works great. It is excellent module for wholesale part of store.
I'm sure I can find other uses for it also.
Satu