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 161 to 180 of 198
7 Jun 2016, 8:37 PM
#161
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Extra Fields for Customer Sign Up (Create Account) Page

Ah, that would explain why it is not saving. All of the module files must be uploaded - including the header_php.php file. If you uploaded your original (without the Extra Field code) then the data can't be saved.

You'll need to merge your existing header_php file with the new one in the module folder. Try using a program like Win Merge to see the differences.

HINT: All the changes are denoted with "extrafield" so they are easy to find.

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

7 Jun 2016, 8:39 PM
#162
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

Oh, and try deleting the log file before you review it again. Don't worry - it will regenerate if there are still errors.

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

9 Jun 2016, 6:55 PM
#163
csgodeimos avatar

csgodeimos

Zen Follower

Join Date:
May 2016
Posts:
191
Plugin Contributions:
0

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

I used WinMerge and checked differences, copied all the stuff over that was different. The changes are saving in the mysql database and they're saving in the customer info in the admin panel so they're visible to me but it's not visible in the field when the customer goes to update their account information.

I deleted the logs and the same error comes up but I'm guessing it's nothing serious.


[09-Jun-2016 20:48:47 Europe/Berlin] Request URI: /store/fiFty-Ica-plumS/template_select.php, IP address: 127.0.0.1
#1 trigger_error() called at [C:\xampp2\htdocs\store\includes\functions\plugin_support.php:68]
#2 plugin_version_check_for_updates() called at [C:\xampp2\htdocs\store\fiFty-Ica-plumS\includes\init_includes\init_responsive_sheffield_blue.php:89]
#3 require(C:\xampp2\htdocs\store\fiFty-Ica-plumS\includes\init_includes\init_responsive_sheffield_blue.php) called at [C:\xampp2\htdocs\store\includes\autoload_func.php:48]
#4 require(C:\xampp2\htdocs\store\includes\autoload_func.php) called at [C:\xampp2\htdocs\store\fiFty-Ica-plumS\includes\application_top.php:171]
#5 require(C:\xampp2\htdocs\store\fiFty-Ica-plumS\includes\application_top.php) called at [C:\xampp2\htdocs\store\fiFty-Ica-plumS\template_select.php:10]

[09-Jun-2016 20:48:47 Europe/Berlin] PHP Notice: CURL error checking plugin versions: 60:SSL certificate problem: self signed certificate in certificate chain
Trying file_get_contents() instead. in C:\xampp2\htdocs\store\includes\functions\plugin_support.php on line 68***

http://www.youtube.com/c/csgodeimos - New Videos Wednesday & Saturday
Gaming Content / Deimos

13 Jun 2016, 5:56 PM
#164
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

Can you upload these two files so I can take a closer look at them?

\includes\templates\YOUR_TEMPLATE\templates\tpl_account_edit_default.php
\includes\modules\pages\account_edit\header_php.php

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

13 Jul 2016, 3:33 PM
#165
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

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

Has anyone tried this mod on zc 1.54?

13 Jul 2016, 7:41 PM
#166
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

I have not tested or released an official version for 1.5.4, but it should work fine.

I recommend comparing the module files VS your site's files using WinMerge to be sure.

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

14 Jul 2016, 2:39 AM
#167
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

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

It works with my 1.54 but I used WinMerge to compare difference between plugin and pluins compatible version and copied the difference to 1.54

22 Jul 2016, 3:42 PM
#168
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

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

vandiermen:

It works with my 1.54 but I used WinMerge to compare difference between plugin and pluins compatible version and copied the difference to 1.54

When using WinMerge how did which file needed merging. Are they the files that attempt overwriting? and when I merge do I just paste the code that is new for the install?\

And if you dont mind asking how do I merge the files?
I see the files on both sides mostly highlighted but not sure what to do?
I apprecciate any help, thank you

22 Jul 2016, 5:33 PM
#169
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

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

compare with 1.5.4 and copy
**// start extrafield
code here
// end extrafield
**to corresponding locations

or what I did is

  1. download original zencart 1.5.0
  2. move "extra_field_on_customer_sign_up_2-0 > zc1.5.0" extracted files to default locations to compare with original zencart 1.5.0
  3. in "different files" you will find highlighted
    // start extrafield
    code here
    // end extrafield

    and copy this code corresponding locations in 1.5.4
23 Nov 2017, 3:21 PM
#171
francois avatar

francois

New Zenner

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

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

jackie.taferner:

Ahh... sorry that must have been personalized to the name of their custom field. If you installed the module exactly as I built it, the custom field will be named "customers_extrafield"

So, I think this would be the correct code instead. Give it a shot and see what happens :)

Add this code at line 28:

$oID = zen_db_prepare_input($_GET['oID']);
//start extrafield
$sql = "SELECT o.customers_id, c.customers_extrafield from " . TABLE_ORDERS . " o, " . TABLE_CUSTOMERS . " c WHERE c.customers_id= o.customers_id and o.orders_id = '" . $oID . "'";
$chk_customers_extrafield = $db->Execute($sql);
$customers_extrafield = $chk_customers_extrafield->fields['customers_extrafield'];
//end extrafield

> 
> so now you can use the $customers_extrafield variable where you want, for example in one of the table cells:
> ```
<?php echo ENTRY_EXTRAFIELD; ?></b><?php echo ' ' . $customers_extrafield; ?>

I was hoping that someone might still be able to help me with a problem.
I am busy upgrading (my 4yo store) to ZC1.5.5 and this plugin would really make things so much easier.
Managed to install and everything is working fine. But I need the new fields to show up on my invoices.
Tried to implement the ideas as above in the invoice.php file.
However, on the invoice it only shows up 'ENTRY_EXTRAFIELD' (and not the text declared in the language file). Also, the field value (as entered by the customers) does not show up.

I am sure I am just missing something simple but, being only an amateur at this, I can't see the problem...

Any help, anyone?

28 Dec 2018, 8:02 PM
#172
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

This module is in dire need of an update for ZC 1.5.6

Thanks for checking

13 Feb 2019, 2:37 PM
#173
mauari avatar

mauari

New Zenner

Join Date:
May 2011
Posts:
67
Plugin Contributions:
4

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

linuxguy2:

This module is in dire need of an update for ZC 1.5.6

Thanks for checking

I uploaded ZC 1.5.6a tested in PHP 7.0 and 7.1 work in 1.55 too - If need some help just ask for
I use ONE extrafied in invoice (VAT NUMBER) - There are a SPANISH language file too in the updated file to use with IVA español
Enjoy

21 Feb 2019, 2:59 AM
#174
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

PHP 7.x
ZC 1.5.6a green classic template

The update to 1.56 works GREAT! Thanks!!!
I have been using this plugin for several years now without issues.
However this year when I upgraded to 1.5.6a I am having issues adding the "extrafields" to the customer registration emails.
They are getting entered into the customer account and I am able to view and edit "Customer" information including the "extrafields" in the Admin interface. That tells me the information is getting into the database.

I entered the "extrafields" in email_functions.php as I did last time but the extrafields are not showing up in emails.
All the other customer information is showing up at the bottom of the admin "you have a new account" email like it's supposed to.

I would appreciate a bit of guidance.

Thanks

21 Feb 2019, 7:24 PM
#175
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:

PHP 7.x
ZC 1.5.6a green classic template

The update to 1.56 works GREAT! Thanks!!!
I have been using this plugin for several years now without issues.
However this year when I upgraded to 1.5.6a I am having issues adding the "extrafields" to the customer registration emails.
They are getting entered into the customer account and I am able to view and edit "Customer" information including the "extrafields" in the Admin interface. That tells me the information is getting into the database.

I entered the "extrafields" in email_functions.php as I did last time but the extrafields are not showing up in emails.
All the other customer information is showing up at the bottom of the admin "you have a new account" email like it's supposed to.

I would appreciate a bit of guidance.

Thanks

I did this exact thing in ZC 1.5.1 and it worked like a charm.
In my curent installation of 1.5.6a the data is getting into the database AND into the customers account but NOT included in the email Admin receives when a new person registers.
In addition to installing the latest "Additional customer Fields" V 1.5.6 plugin I made these additions to
email_functions.php trying to get the "Company" name into the email but no joy.
I also tried inserting the "extrafield's" .

Around Line 600
//  function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
(Changed to)
  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='', $moreinfo = array()) {

Around line 630
 ($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
	  /////////////// Added Company Field  //////////////////
	  ($company !='' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
 ($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') . 
23 Feb 2019, 11:15 PM
#176
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:

PHP 7.x
ZC 1.5.6a green classic template

The update to 1.56 works GREAT! Thanks!!!
I have been using this plugin for several years now without issues.
However this year when I upgraded to 1.5.6a I am having issues adding the "extrafields" to the customer registration emails.
They are getting entered into the customer account and I am able to view and edit "Customer" information including the "extrafields" in the Admin interface. That tells me the information is getting into the database.

I entered the "extrafields" in email_functions.php as I did last time but the extrafields are not showing up in emails.
All the other customer information is showing up at the bottom of the admin "you have a new account" email like it's supposed to.

I would appreciate a bit of guidance.

Thanks

Problem SOLVED
After many hours of toiling over a smoking keyboard the only logical conclusion was the "extra_info" array wasn't being created.
Hope this helps some other non-coder like myself in the future.

In includes/modules/your_template/create_account.php I hadn't added the necessary code to generate the "extra_info" array

Around line 440
ORIGINAL Code:

 $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']);

MODIFIE:Code:

$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);

Then of course this mod in /includes/functions/email_functions.php around line 590
ORIGINAL Code:

function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {

MODIFIED Code:

 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='', $moreinfo = array()) {

AND modify/add: around line 610

$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>';
8 Jun 2023, 10:36 AM
#177
daxtheman avatar

daxtheman

New Zenner

Join Date:
Jun 2023
Location:
UK
Posts:
21
Plugin Contributions:
0

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

Has anyone tried this with ZC 1.5.8 and more particularly PHP 8.2?

I see there are wholesale code changes with ZC1.5.8 so, I'm guessing, this plugin would need an update too. Anyone know what would be required?

Any guidance would be appreciated. Thanks.

13 May 2024, 10:58 PM
#178
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

Has anyone tested Extra Fields for Customer Sign Up on ZC 2.0?
I have used Extra Fields many times in the past without issue. The last ZC version was 5.6. Today I installed Extra Fields for Customer Sign Up on ZC version 2.0
I tested on two different ZC installs (responsive_classic) template one of them was out of the box (NO MODS) and all I get is this.

Attachment 20611

13 May 2024, 11:07 PM
#179
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,718
Plugin Contributions:
56

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

I'm guessing this is a partial blank screen with a debug log. Please post it.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

14 May 2024, 3:01 PM
#180
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

Turned on ALL logging options and nothing there. The first time an extra field entry is accessed it just stops displaying additional content. when viewing source in browser Nothing below the extra field in the page.

Do you know if this has been tested on ZC 2.0?

Attachment 20614