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 121 to 140 of 198
12 Sep 2013, 11:19 PM
#121
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Extra Fields for Customer Sign Up (Create Account) Page

Thanks for a great mod!

I installed it and it worked fine on the account creation/login page, but the extra fields did not show when I clicked 'edit' further in checkout to test the ability to change info before paying. To be clear, that's the page- ...main_page=checkout_payment_address

I'm on Zen 1.5.1 with only one other plugin, "export_shipping_information_V1.3.2.1," and it does not use any of the same files. I uploaded your mod files a second time as I read that process might contain a common error. And yes, I changed the name of the custom folder. I read something earlier in this thread that seemed to be a similar issue, but that was 2 years ago and it wasn't entirely clear. In the meantime, I turned off all the options.

Any ideas, please?

28 Sep 2013, 6:05 AM
#122
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

New install of V 1.5.1 Running on Network Solutions shared hosting. Installed "extra_field_on_customer_sign_up_2-0" plugin and everything works great except when I authorize a newly registered customer no email is sent out.
All other email functions work OK. I have searched for this problem in the forum and in the wild but could find nothing. Anyone else have this problem?
I can't open up my site to the public today but I can probably make it available in a day or two.

Thanks for your awesome plugin!

29 Sep 2013, 4:07 AM
#123
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

Did a clean install of the CLASSIC template with NO mods and the following selections for new customer registration.

Customer Shop Status - View Shop and Prices [ 2 ]
Customer Approval Status - Authorization Pending [ 2 ]
When I approve the customer the Approval email goes out as advertized.

Installed the extra fields mod and now the Approval email never shows up in my inbox....
I have been testing on Hosttornado for several weeks now with no other issues.
As stated in my original posting this happens on my hosting plan at Network Solutions too so I don't think their servers are the problem.

I'm just a code hacker but I've been debugging this for two days now and can't seem to find the cause.

Again Thanks for the great mod........

29 Sep 2013, 6:28 PM
#124
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

Did some trouble shooting last night and found that if I remove the last three customers_extrafield2-3-4 code but left the first one (customers_extrafield) from /admin/customer.php the customer status update email gets sent.
To clarify I removed it in all three places in the /admin/customer.php file
I then tried removing all but customers_extrafield2 from /admin/customer.php and the email failed.
Tested with all 5 settings in the admin "customer details" screen set to true or false.

While I'm here.... how do you get the customers_extrafields to be included in the "You have a new customer" email the store owner gets?

Thanks

29 Sep 2013, 7:26 PM
#125
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

linuxguy2:

Did some trouble shooting last night and found that if I remove the last three customers_extrafield2-3-4 code but left the first one (customers_extrafield) from /admin/customer.php the customer status update email gets sent.
To clarify I removed it in all three places in the /admin/customer.php file
I then tried removing all but customers_extrafield2 from /admin/customer.php and the email failed.
Tested with all 5 settings in the admin "customer details" screen set to true or false.

While I'm here.... how do you get the customers_extrafields to be included in the "You have a new customer" email the store owner gets?

Thanks

MY BAD, :shocking:
Seems it's still broken with only the first entry. Pretty sure it was working with the first field but today it's not :no:

30 Sep 2013, 2:24 PM
#126
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

linuxguy2:

MY BAD, :shocking:
Seems it's still broken with only the first entry. Pretty sure it was working with the first field but today it's not :no:

UNBAD, Ignore this entry. It works with the first field but none of the others.

2 Oct 2013, 11:42 PM
#127
meb2012 avatar

meb2012

New Zenner

Join Date:
May 2012
Posts:
7
Plugin Contributions:
0

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

Hello, I've installed and everything presents as expected both on the visible customer sign-up as well as the customer edit info for Admins. However, the values entered in the extra fields do not show up when reviewing with the Admin Edit window –##the field show but there is nothing in it. Thoughts on where to trouble shoot?

Thanks!

7 Oct 2013, 1:41 PM
#128
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

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

I just realized that the Telephone field (and optional Fax) also does not appear on the checkout page to edit info so I'm going to study other threads. Still, if anyone here knows how to do this, please let me know.

10 Oct 2013, 7:47 PM
#129
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

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

I played around some more and got the fields to appear, but then after clicking Continue, noticed the new info wasn't actually added to the order. Instead of spending even more time on this, I realized using text attribute fields on some product pages was a better way to get the info I needed.

In case someone else looks to solve the original question, adding the following to tpl_modules_checkout_new_address made the extra fields appear:

<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo zen_draw_input_field('extrafield', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_extrafield', '40') . ' id="extrafield"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
...
<label class="inputLabel" for="extrafield4"><?php echo ENTRY_EXTRAFIELD4; ?></label>
<?php echo zen_draw_textarea_field('extrafield4', '30','2', $extrafield4, 'id="extrafield4"') . (zen_not_null(ENTRY_EXTRAFIELD4_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD4_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

My fields weren't required so I skipped the code of "<?php
if (xx == 'true') ..."

25 Nov 2013, 7:42 PM
#130
jdahlbom avatar

jdahlbom

New Zenner

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

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

Hi,

First; I love the module!

I would like my extrafields to display on the order-information-page in admin. (Not in the email-confirmation).
Is there a clear guide how to do this?

I've read the flowing thread but cant figure it out; http://www.zen-cart.com/showthread.php?206773-Adding-extra-fields-to-admin-copy-of-order-confirmation-email-and-orders-area/page2

Could someone please help me with a simple guide how this is done?

Thnd in advance,
JDahlbom

1 Dec 2013, 1:33 AM
#131
akjim62 avatar

akjim62

New Zenner

Join Date:
Sep 2012
Location:
Anchorage, Alaska
Posts:
5
Plugin Contributions:
0

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

Hello,

I installed the module and sql statement, and all went well. Everything is in the admin, but I see no new fields in on the signup form. Also, there is no label for the STATE field. Anybody else have this problem? Thanks.

18 Dec 2013, 5:14 AM
#132
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

Check the "Customer Details" setup in your Admin under the Configuration menu.

16 Jan 2014, 2:19 PM
#133
okkwebmedia avatar

okkwebmedia

New Zenner

Join Date:
Jul 2013
Location:
Cluj, Romania
Posts:
11
Plugin Contributions:
0

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

Hi,

how can I add the extrafields to admin/invoice.php and to includes/modules/print_invoice.php?

Thanks for the help!:smile:

16 Jan 2014, 2:51 PM
#134
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

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

Okkwebmedia:

Hi,

how can I add the extrafields to admin/invoice.php and to includes/modules/print_invoice.php?

Thanks for the help!:smile:

As long as the extrafields have been added to the db query you can add/echo the new fields in admin/orders.php to see it on the edit orders/invoice page. The same is true with the print invoice.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

23 Jan 2014, 1:28 AM
#135
park avatar

park

New Zenner

Join Date:
Jan 2014
Location:
San pablo, CA
Posts:
19
Plugin Contributions:
0

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

Hi, I'm using Zen-cart 1.5.1 ver.

Can I use it or no?

16 Feb 2014, 2:33 AM
#136
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

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

ZC 1.5.1 and "Extra Fields for customer sign up" "EXFCSU"
This isn't exactly what you asked for but it may give you some ideas how to use EXFCSU for your purposes. I'm showing the core folders but you can apply this to your "Overrides" folders.
In addition to the standard installation of EXFCSU this is how I expanded the EXF(s) to collect additional information in the registration form " create_account.php " & then add that information to the EXTRA_INFO in the admin copy of the registration sign up emails.

In "includes\modules\create_account.php" around line 733

$extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax'], $company, $extrafield, $extrafield2, $street_address, $suburb, $city, $state, $postcode, $extrafield4);

In "includes\languages\emglish\email_extras.php" around line 20

define('OFFICE_USE','<strong>Office Use Only:</strong>');
define('OFFICE_LOGIN_NAME','<strong>Login Name:</strong>');
define('OFFICE_LOGIN_EMAIL','<strong>Email:</strong>');
// Add company, extrafield, street address, city, state, zip, & extrafield2 defines
define('OFFICE_COMPANY','<strong>Company Name:</strong>');
define('OFFICE_EXTRAFIELD','<strong>Tax ID#:</strong>');
define('OFFICE_STREET_ADDRESS','<strong>Street Address:</strong>');
define('OFFICE_STREET_ADDRESS_LINE2','<strong>Address Line 2:</strong>');
define('OFFICE_CITY','<strong>City:</strong>');
define('OFFICE_STATE','<strong>State:</strong>');
define('OFFICE_POSTCODE','<strong>Zip Code:</strong>');
define('OFFICE_EXTRAFIELD2','<strong>Current Customer:</strong>');
define('OFFICE_EXTRAFIELD4','<strong>My Store:</strong>');

In "\includes\functions\functions_email.php" around line 508
I'm using HTML email but the same could be applied to TEXT emails.

  • Function to build array of additional email content collected and sent on admin-copies of emails:

*/
function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='') {
// get host_address from either session or one time for both email types to save server load
if (!$_SESSION['customers_host_address']) {
if (SESSION_IP_TO_HOST_ADDRESS == 'true') {
$email_host_address = @gethostbyaddr($_SERVER['REMOTE_ADDR']);
} else {
$email_host_address = OFFICE_IP_TO_HOST_ADDRESS;
}
} else {
$email_host_address = $_SESSION['customers_host_address'];
}

// generate footer details for "also-send-to" emails
$extra_info=array();
$extra_info['TEXT'] =
  OFFICE_USE . "\t" . "\n" .
  OFFICE_FROM . "\t" . $from . "\n" .
  OFFICE_EMAIL. "\t" . $email_from . "\n" .
  (trim($login) !='' ? OFFICE_LOGIN_NAME . "\t" . $login . "\n"  : '') .
  (trim($login_email) !='' ? OFFICE_LOGIN_EMAIL . "\t" . $login_email . "\n"  : '') .
  ($login_phone !='' ? OFFICE_LOGIN_PHONE . "\t" . $login_phone . "\n" : '') .
  ($login_fax !='' ? OFFICE_LOGIN_FAX . "\t" . $login_fax . "\n" : '') .
  OFFICE_IP_ADDRESS . "\t" . $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR'] . "\n" .
  OFFICE_HOST_ADDRESS . "\t" . $email_host_address . "\n" .
  OFFICE_DATE_TIME . "\t" . date("D M j Y G:i:s T") . "\n\n";

// LtoMod Add company, extrafield, street address, city, state, zip, & extrafield2
$extra_info['HTML'] = '<table width="100%" class="extra-info">' .
'<tr><td class="extra-info-bold" colspan="2">' . OFFICE_USE . '</td></tr>' .
'<tr><td width="20%" class="extra-info-bold">' . OFFICE_FROM . '</td><td>' . $from . '</td></tr>' .
//'<tr><td class="extra-info-bold">' . OFFICE_EMAIL. '</td><td>' . $email_from . '</td></tr>' .
($login_email !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_EMAIL . '</td><td>' . $login_email . '</td></tr>' : '') .
($login !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_NAME . '</td><td>' . $login . '</td></tr>' : '') .
($company != '' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
($extrafield != '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD . '</td><td>' . $extrafield . '</td></tr>' : '') .
($street_address != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS . '</td><td>' . $street_address . '</td></tr>' : '') .
($suburb != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS_LINE2 . '</td><td>' . $suburb . '</td></tr>' : '') .
($city != '' ?'<tr><td class="extra-info-bold">' . OFFICE_CITY . '</td><td>' . $city . '</td></tr>' : '') .
($state != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STATE . '</td><td>' . $state . '</td></tr>' : '') .
($postcode != '' ? '<tr><td class="extra-info-bold">' . OFFICE_POSTCODE . '</td><td>' . $postcode . '</td></tr>' : '') .
($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .
($extrafield2 != '' ? '<tr><td width="20%" class="extra-info-bold">' . OFFICE_EXTRAFIELD2 . '</td><td>' . $extrafield2 . '</td></tr>' : '') .
($extrafield4 != '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD4 . '</td><td>' . $extrafield4 . '</td></tr>' : '') .
'<tr><td class="extra-info-bold">' . " " . '</td><td>' . " " . '</td></tr>' .
'<tr><td class="extra-info-bold">' . OFFICE_IP_ADDRESS . '</td><td>' . $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR'] . '</td></tr>' .
'<tr><td class="extra-info-bold">' . OFFICE_HOST_ADDRESS . '</td><td>' . $email_host_address . '</td></tr>' .
'<tr><td class="extra-info-bold">' . OFFICE_DATE_TIME . '</td><td>' . date('D M j Y G:i:s T') . '</td></tr>' . '</table>';
return $extra_info;
}

27 Mar 2014, 5:14 PM
#137
johninreno avatar

johninreno

New Zenner

Join Date:
Mar 2014
Location:
US
Posts:
4
Plugin Contributions:
0

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

I installed your add on, but the extra fields are not showing up on the create account page or in the customer's "My Account" page. They do, however, show up in the Admin > Configuration > Customer Details section as "Display Extra Field #1", etc.

I tried to follow instructions carefully, but apparently missed something. Any help would be appreciated. I'm using version 1.3.9. Thank you in advance.

27 Mar 2014, 6:13 PM
#138
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

@johninreno, sounds like you may have missed one of the installation steps.

Did you:

  1. Change the name of /YOUR_TEMPLATE/ folders to the name of your template folder

  2. Open the 2 language files and define the names of your new field(s):
    /includes/languages/english/extra_definitions/extrafield_defines.php
    /admin/includes/languages/english/customers.php

  3. Upload all contents to your main Zen Cart store directory

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

27 Mar 2014, 11:56 PM
#139
johninreno avatar

johninreno

New Zenner

Join Date:
Mar 2014
Location:
US
Posts:
4
Plugin Contributions:
0

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

Thank you for your quick reply, Jackie. I put the changes I made inside your response, as shown below.

jackie.taferner:

@johninreno, sounds like you may have missed one of the installation steps.

Did you:

  1. Change the name of /YOUR_TEMPLATE/ folders to the name of your template folder
    Yes, changed the /YOUR_TEMPLATE/ folders to blue_sky

  2. Open the 2 language files and define the names of your new field(s):
    Yes, changed as shown:
    /includes/languages/english/extra_definitions/extrafield_defines.php
    define('EXTRAFIELD_TITLE', 'Company Details');

define('ENTRY_EXTRAFIELD', 'Reseller License #:');
define('ENTRY_EXTRAFIELD_ERROR', 'Please Enter Reseller License #:');

define('ENTRY_EXTRAFIELD2', 'Reseller State:');
define('ENTRY_EXTRAFIELD2_ERROR', 'Please Enter Reseller State:');

/admin/includes/languages/english/customers.php
Yes, changed as shown:
//start extrafield
define('ENTRY_EXTRAFIELD', 'Reseller License #:');
define('ENTRY_EXTRAFIELD2', 'Reseller State:');
define('ENTRY_EXTRAFIELD3', 'Field #3:');
define('ENTRY_EXTRAFIELD4', 'Comments:');
//end extrafield

  1. Upload all contents to your main Zen Cart store directory
    Just to be sure, should I upload the entire Zen Cart store directory or just the "extra_field_on_customer_sign_up_2-0" directory?
18 Apr 2014, 3:57 PM
#140
helenakj avatar

helenakj

New Zenner

Join Date:
Dec 2013
Location:
Columbia, SC
Posts:
3
Plugin Contributions:
0

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

Using Zen Cart Version 1.5.1 Does this plugin work for this version? Also, which customer database(s) are the four new fields being added to?