Zen Cart Logo
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,912

Results 61 to 80 of 198
14 Jul 2011, 10:35 AM
#61
nakashima avatar

nakashima

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

Extra Fields for Customer Sign Up (Create Account) Page

I'd like it so that when the customer signs up they can choose a size and I'll have a record of it. It's to help segment out specific products for specific sizes.

14 Jul 2011, 4:24 PM
#62
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 could benefit from a more custom solution. Typically, attributes are used to select size of a product. So it sounds like you would like to store attribute sizes and auto-select for the customer's future orders. That will make their shopping experience easier, and your store management easier. Of course, that would require totally custom code. Just an idea for consideration :)

For now, if you want to manually look at their size from the Customers page, and match it up to the order each time, then you can use a simple dropdown.

The How Did You Hear About Us module has a built-in dropdown and you can edit the fields from the admin. This way, you can easily manage sizes without having to modify code each time: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=186

20 Jul 2011, 8:18 PM
#63
nakashima avatar

nakashima

New Zenner

Join Date:
Jul 2011
Posts:
3
Plugin Contributions:
0

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

I managed to get it to display the dropdown using an array, but it's not showing the data in the array for the dropdown.

What I have is this:

$extrafieldArray = array();
$extrafieldArray[] = array('id' => '1', 'text' => '1');
$extrafieldArray[] = array('id' => '2', 'text' => '2');
$extrafieldArray[] = array('id' => '3', 'text' => '3');
$extrafieldArray[] = array('id' => '4', 'text' => '4');
$extrafieldArray[] = array('id' => '5', 'text' => '5');

for the array

and then for the dropdown on the registration page:

<?php echo zen_draw_pull_down_menu('extrafield',$extrafieldArray) . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>

Any ideas perhaps?

Thank you!

8 Aug 2011, 4:25 PM
#64
rabbs avatar

rabbs

New Zenner

Join Date:
Aug 2011
Posts:
4
Plugin Contributions:
0

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

@jackie - thanks for this mod - it is so close to what I need. I've just set up a florist shop for my wife and she wants clients to be able to enter specific information when they register (eg wifes/partners birthday, specific instructions (eg preferred colours). She can then target them with specific bouquets.

@jahmar - I think what you have done, is what I need - I have added an one additional field (added sql to sql and .php files) but I still only see one extrafield box. jahmar is there any way you could share the files you updated so I can see what you changed?

I can send across my email if there is any chance -

Rabbs

8 Aug 2011, 4:40 PM
#65
rabbs avatar

rabbs

New Zenner

Join Date:
Aug 2011
Posts:
4
Plugin Contributions:
0

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

Sorry @jackie - you posted earlier:

@ntestinfo11, yes you can add more fields by following the instructions in readme.txt file

I only have instructions.txt (I know this is readme) - but it doesn't say how to add more fields. Is there another readme.txt or...

Thanks in advance

Rabbs

8 Aug 2011, 4:57 PM
#66
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

Hmm, perhaps the instructions aren't in there... I will check into that. Basically, the way you would make new fields is by duplicating the "extrafield" throughout the files.

For example, in this file:
includes/templates/YOUR_TEMPLATE/tpl_account_edit_default.php

You would find this code and duplicate it, then add your new variable instead of "extrafield". Let's say, "extrafield2".

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

Do the same for all the remaining files... find the variable "extrafield" and copy then modify the code.

Then, you'll want to run the Install script for your new field. Swap out "extrafield" for your new variable in the install.txt script, then run in SQL patches.

9 Aug 2011, 10:54 AM
#67
rabbs avatar

rabbs

New Zenner

Join Date:
Aug 2011
Posts:
4
Plugin Contributions:
0

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

Thanks Jackie

Really appreciate your quick response - found my errors after some digging and it's now working - I missed changing the extrafield_defines.php - had a brain freeze...

Many thanks!

13 Aug 2011, 12:54 AM
#68
solidrock avatar

solidrock

New Zenner

Join Date:
Nov 2009
Location:
Aurora, IN
Posts:
37
Plugin Contributions:
0

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

I did step 3, checked all the files and they seem to be correct, and all I get on my create account page is the following:

ENTRY_EXTRAFIELD [Text box] ENTRY_EXTRAFIELD_TEXT

Any ideas? I'm running 1.3.8a.

I want the label for the entry to be "Wholesale Group", and I'd love to have a dropdown box where they can select one of many options. Can you help me with that?

15 Aug 2011, 4:32 PM
#69
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

Looks like you are missing the language definitions files. Try re-uploading the file in \includes\languages

26 Sep 2011, 3:50 PM
#70
dtang888 avatar

dtang888

New Zenner

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

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

The add-on worked fine. My question is how to add drop down list in this extra field. For example, the extra filed is for the Souce of Information:

option 1: Goggle Search
option 2: yahoo search
option 3: Magizine ads

etc.

Thanks!

26 Sep 2011, 10:13 PM
#71
dtang888 avatar

dtang888

New Zenner

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

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

Have you figured out how to do it? I tried to create a similar field. I will appreciate it if you can share your solution. Thanks!

5 Oct 2011, 1:28 PM
#73
blightyexpat avatar

blightyexpat

New Zenner

Join Date:
Jun 2011
Location:
Cape Town, SA
Posts:
6
Plugin Contributions:
0

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

Running v1.3.9h and have managed to add an extra filed for telephone (Mobile Number). If I test with setting up a new account, the new field displays and is present when viewing as Administrator, but is empty.

If I Update the test account by logging in as customer and 'View or change my account information', then re-enter the mobile number, it then stores correctly.

Any idea why this might be?

https://www.fort777.co.za

17 Nov 2011, 3:12 AM
#74
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

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

Hi Jackie,

I downloaded your mod earlier today and I believe I followed the instructions however it is obvious I have missed something or more correctly misinterpreted your instructions. The "display extra field"and "require extra field" both show up in Configuration in admin but there are no changes to the create an account form.

Checking some of the files it appears some have the text 'extrafield' in the strings rather than what I named it - do I go about changing everything I find in all files to "MY_NAME" or do a re-load?

So that you know - I want an additional field to "Company Name" - it will be "Company ABN" (ABN=Australian Business Number) which is required to validate that the account application is from a legitemate company or business (we wholesale) - it would also need a "validate" code, e.g. must be eleven characters with no spaces - with instruction, like for password). Noticeably the "Company Name" section does not have a "*" for required information so it appears that the standard form is designed for consumers, end user customers.

So what would be your advice?

cheers in advance,
Mike

27 Dec 2011, 8:39 PM
#75
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

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

How would you display this field in the orders.php page in the admin? I added it to the invoice, but that code doesn't work for the orders page. Thanks!

8 Mar 2012, 6:02 PM
#76
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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

I have version 1.0 of this mod and I'd like to add more extra fields. I didn't see any instructions in the instructions.txt file.

How can I do this?

Thanks,

John

12 Jun 2012, 4:35 AM
#77
sydmich avatar

sydmich

New Zenner

Join Date:
Jun 2007
Location:
Australia
Posts:
60
Plugin Contributions:
0

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

Hi,
I know this is a long shot in trying to get a reply. But since this is doing my head in I thought I would ask. I installed this mod successfully the first time then decided to add some more extra fields. Im running version 1.38a and I did get the mod running on the customer side. However when testing to approve customer I am now getting this error and my list of customers will not show up. Any help really appreciated
**
Fatal error**: Call to undefined function zen_get_customers_address_book() in /var/www/XXXXXX/httpdocs/store/admin/customers.php on line 1189

12 Jun 2012, 5:40 AM
#78
sydmich avatar

sydmich

New Zenner

Join Date:
Jun 2007
Location:
Australia
Posts:
60
Plugin Contributions:
0

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

Ok,
I fixed this error just in case other people get it I replaced my file under admin/includes/functions/general.php.
and now it all works

12 Sep 2012, 3:56 AM
#79
kile08 avatar

kile08

New Zenner

Join Date:
Sep 2012
Posts:
1
Plugin Contributions:
0

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

Hello
I installed the customer extra fields works on signup page but when i go to edit account the required fields do not display the error message any ideas why this is.
Thank you

28 Sep 2012, 8:32 AM
#80
elmick avatar

elmick

New Zenner

Join Date:
Sep 2012
Posts:
10
Plugin Contributions:
0

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

Hi jackie.taferner. Your module is just what I need. I'm running version 1.5 and have tried installing. First time I forgot to configure /YOUR_TEMPLATE/ but then did and reinstalled. On my login page I get an extra box with the title "EXTRA FIELDS" but no fields show up. I have tried checking Admin > Configuration > Customer Details but nothing there. Once I had configured the files, I dragged both the admin folder and the includes folder into the root folder of my site. Did I install correctly? What am I doing wrong? Please help!