Forums / All Other Contributions/Addons / Extra Fields for Customer Sign Up (Create Account) Page

Extra Fields for Customer Sign Up (Create Account) Page

Views: 264,940

Results 81 to 100 of 198
30 Sep 2012, 9:43 PM
#81
lafaverp avatar

lafaverp

New Zenner

Join Date:
Sep 2011
Posts:
27
Plugin Contributions:
0

Extra Fields for Customer Sign Up (Create Account) Page

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?

16 Oct 2012, 7:59 AM
#82
defanci avatar

defanci

New Zenner

Join Date:
Dec 2009
Posts:
42
Plugin Contributions:
0

Re: Extra Fields for Customer Sign Up (Create Account) Page

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.

24 Oct 2012, 9:48 PM
#83
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Extra Fields for Customer Sign Up (Create Account) Page

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:

<!-- 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 -->

And replace with this:

<!-- 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 -->

An alternative would be to display just the text, instead of an input field:

<!-- start extrafield -->
<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo $account->fields['customers_extrafield']; ?>
<br class="clearBoth" />
<!-- end extrafield -->

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

25 Oct 2012, 7:40 AM
#84
defanci avatar

defanci

New Zenner

Join Date:
Dec 2009
Posts:
42
Plugin Contributions:
0

Re: Extra Fields for Customer Sign Up (Create Account) Page

It works, thank you.

21 Nov 2012, 5:57 PM
#85
youlookgreat avatar

youlookgreat

New Zenner

Join Date:
Jun 2010
Posts:
25
Plugin Contributions:
0

Re: Extra Fields for Customer Sign Up (Create Account) Page

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

21 Nov 2012, 9:46 PM
#86
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Extra Fields for Customer Sign Up (Create Account) Page

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.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

16 Jan 2013, 4:11 PM
#87
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Extra Fields for Customer Sign Up (Create Account) Page

To make this mod compatible with php5.3+, I consider the following is all that needs to be changed.

admin\customers.php

Line 78

          if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_GET['current'] > 0 && $custinfo->RecordCount() > 0) {

change to

            if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_POST['current'] > 0 && $custinfo->RecordCount() > 0) {

However, if someone could please confirm.

12 Feb 2013, 7:20 PM
#88
orbit_storm avatar

orbit_storm

New Zenner

Join Date:
Mar 2012
Posts:
23
Plugin Contributions:
0

Re: Extra Fields for Customer Sign Up (Create Account) Page

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.

15 Feb 2013, 6:24 PM
#89
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Extra Fields for Customer Sign Up (Create Account) Page

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.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

23 Mar 2013, 2:55 PM
#90
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: Extra Fields for Customer Sign Up (Create Account) Page

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.php?206773-Adding-extra-fields-to-admin-copy-of-order-confirmation-email-and-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.

Building a better web, one site at a time: Dayton Web Design

14 Apr 2013, 6:39 PM
#91
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

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?

15 Apr 2013, 5:45 PM
#92
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

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.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

15 Apr 2013, 6:37 PM
#93
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

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.

15 Apr 2013, 9:48 PM
#94
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

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.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

16 Apr 2013, 8:18 PM
#95
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

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.

21 Apr 2013, 5:28 PM
#96
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

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

22 Apr 2013, 4:11 PM
#97
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

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.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

10 May 2013, 10:19 PM
#98
satu avatar

satu

New Zenner

Join Date:
Jan 2007
Location:
Idaho
Posts:
43
Plugin Contributions:
0

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

Bought coffee for the Zen Cart Team!
Zen Cart version 1.51

10 May 2013, 10:32 PM
#99
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

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?

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

11 May 2013, 1:25 PM
#100
satu avatar

satu

New Zenner

Join Date:
Jan 2007
Location:
Idaho
Posts:
43
Plugin Contributions:
0

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

Bought coffee for the Zen Cart Team!
Zen Cart version 1.51