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 141 to 160 of 198
18 Apr 2014, 4:37 PM
#141
helenakj avatar

helenakj

New Zenner

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

Extra Fields for Customer Sign Up (Create Account) Page

Sorry, I should have read all the threads before posting. Sounds like it does work with v 1.5.1 and data is added to customers table.

18 Apr 2014, 7:38 PM
#142
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

We had a company do updates to our site and some file structures are different than from a standard install. I checked the files structures for the affected files to make sure they match and found that there are some differences.

The admin folder is called 2013. Can I assume I need to rename the admin folder from the download accordingly?

The create_account.php file is currently located at includes/modules/create_account.php which doesn't follow the includes/modules/YOUR_TEMPLATE/create_account.php file structure in the file(s) I downloaded. Should I change the file structure(s) to make sure they match or is this mod creating another create_account.php file that sits within YOUR_TEMPLATE (appropriate name).

If I should adjust the file structure how best to do that. i.e. should I create a YOUR_TEMPLATE (appropriately named) folder in my current file structure so that the create_account.php file is saved there or should I remove the YOUR_TEMPLATE folder from the files I downloaded and place the create_account.php file directly into the modules folder?

3 Jun 2014, 2:59 AM
#143
thudn avatar

thudn

New Zenner

Join Date:
Dec 2010
Location:
Melbourne, Australia
Posts:
5
Plugin Contributions:
0

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

Hi All,

I have installed and used this add-on for years now; but only used one of the 4 extrafields that come with it. It's been working fine for me.
My store now has the need to use another field to store some extra customer info; but we want it to be available on the admin side only, and not on the sign-up or account edit pages that customers see. Currently when I turn on an extra field in the config, it's on in all those places.

Is there a clean way to do this rather than editing the template files ? My site is on 1.3.8a. Thanks.

3 Jun 2014, 5:40 AM
#144
thudn avatar

thudn

New Zenner

Join Date:
Dec 2010
Location:
Melbourne, Australia
Posts:
5
Plugin Contributions:
0

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

I thought I'd post my own solution here, so unless someone has a better idea, I'll stick to to this (and it might end up helping others looking for a similar feature).

I clone the configuration keys to turn on/off DISPLAY_EXTRAFIELD and name their keys DISPLAY_EXTRAFIELD_ADMIN for each of the customers_extrafield. With these keys I can turn on/off at will.

The I edit /admin/customers.php ; wherever there is this:

if (DISPLAY_EXTRAFIELD == 'true') 

I change it to:

if (DISPLAY_EXTRAFIELD == 'true' || (DISPLAY_EXTRAFIELD_ADMIN == 'true')

With this I can choose to have the extra field displayed the normal way or in admin only by setting DISPLAY_EXTRAFIELD_ADMIN to on .

11 Jun 2014, 3:33 AM
#145
thudn avatar

thudn

New Zenner

Join Date:
Dec 2010
Location:
Melbourne, Australia
Posts:
5
Plugin Contributions:
0

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

thudn:

I thought I'd post my own solution here, so unless someone has a better idea, I'll stick to to this (and it might end up helping others looking for a similar feature).

I clone the configuration keys to turn on/off DISPLAY_EXTRAFIELD and name them DISPLAY_EXTRAFIELD_ADMIN for each of the customers_extrafield. These keys allow me to turn them on/off at will .

Then I edit /admin/customers.php ; wherever there is this:

if (DISPLAY_EXTRAFIELD == 'true')

> 
> I change it to:
> 
>  ```
if (DISPLAY_EXTRAFIELD == 'true' || DISPLAY_EXTRAFIELD_ADMIN == 'true')

With this I can choose to have the extra field displayed the normal way or in admin only by setting DISPLAY_EXTRAFIELD_ADMIN to on .

As I no longer can edit previous post for typo errors, please see all the corrections in the quoted part.

18 Mar 2015, 3:55 AM
#146
jwlamb avatar

jwlamb

Zen Follower

Join Date:
Jan 2014
Location:
Arizona
Posts:
110
Plugin Contributions:
0

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

Good evening,

I tried to install this plugin with 1.5.4. I used WinMerge to try to add the appropriate data while keeping the 1.5.4 structure. I then ran the SQL patch. But now when I try to edit a customer or delete a customer, I get an HTTP 500 error.

I copied all of my old files back to my store and tried to run delete SQL to no avail. Could anyone please help me?

18 Mar 2015, 4:53 AM
#147
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

jwlamb:

Good evening,

I tried to install this plugin with 1.5.4. I used WinMerge to try to add the appropriate data while keeping the 1.5.4 structure. I then ran the SQL patch. But now when I try to edit a customer or delete a customer, I get an HTTP 500 error.

I copied all of my old files back to my store and tried to run delete SQL to no avail. Could anyone please help me?

Peek at your /log folder for any errors that may have been left when the code failed.

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

1 Apr 2015, 12:52 AM
#148
hugostiglitz avatar

hugostiglitz

New Zenner

Join Date:
Mar 2015
Location:
Queensland, Australia
Posts:
11
Plugin Contributions:
0

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

Hi Everyone,

I am trying to get the customers_extrafield information to show on the admin invoice.
I have installed the mod and can edit the field from the customers tab fine (i dont want customers to edit so I have not updated / modified the edit or create account pages)

I saw the code in post #6 but cannot seem to get it to work (code written for 1.3)

zencart 1.5.4
Extra Fields 2.0

any help with this would be great.

29 Dec 2015, 1:00 PM
#149
vandiermen avatar

vandiermen

Totally Zenned

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

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

I added 50 fields using this plugin, it's working great except for when a user misses a field, it refreshes and displays a missing field warning, and wipes out all the 50 fields, so the user needs to add all of them again. The normal zencart fields don't get wiped out. I have looked at the normal zencart fields, but I don't know what the difference is and why these remain when extra fields become blank.
Thanks for the contribution.

29 Dec 2015, 1:32 PM
#150
vandiermen avatar

vandiermen

Totally Zenned

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

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

vandiermen:

extra fields become blank.
p.s.
Looks like this is my fault somehow, the extra fields 1 2 3 4 are fine, just the ones I added are becoming blank, I am sure I will figure it out soon.

29 Dec 2015, 1:49 PM
#151
vandiermen avatar

vandiermen

Totally Zenned

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

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

vandiermen:

extra fields become blank.
My fault, error in my code, all good now.

3 Feb 2016, 3:02 PM
#152
beverly2345 avatar

beverly2345

New Zenner

Join Date:
Feb 2016
Location:
Gainesville, FL
Posts:
1
Plugin Contributions:
0

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

I was wondering if you have an uninstall.sql file for your *extra field on customer sign up *addon for ZenCart. I would like to uninstall the add-on completely. I tried looking through the ZenCart forum but couldn’t find anything. Thanks

3 Feb 2016, 4:54 PM
#153
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

@beverly2345

There is no uninstall script, but you can take the following steps to remove from your database:

  1. BACKUP your database! In case something goes terribly wrong, you will want a backup to restore your database from.

  2. Open PhpMyAdmin in your hosting control panel, and navigate to your Zen Cart database.

  3. Find the following columns in your 'customers' table and delete them:

customers_extrafield
customers_extrafield2
customers_extrafield3
customers_extrafield4

  1. Browse your 'configuration' table and delete any rows that have the term 'extrafield' in them. I believe there are 8 instances (2 for each field). You can perform a Search to make this task easier.

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

2 Mar 2016, 8:59 PM
#154
robbinsgj avatar

robbinsgj

New Zenner

Join Date:
Jul 2009
Posts:
48
Plugin Contributions:
0

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

Is there a way to require an already existing customer to fill out the newly added field before they can checkout?

2 Mar 2016, 9:34 PM
#155
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

@robbinsgj

Yes, you can make the fields required or turn them on/off in Admin > Configuration > Customer Details

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

2 Jun 2016, 1:19 PM
#156
csgodeimos avatar

csgodeimos

Zen Follower

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

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

Hey guys,

Having a small problem, hopefully you can help me out.

I installed everything via the readme file and it all seemed to be working fine. I can create a customer with the new fields and it writes the data to the database. The only problem I'm having is when a customer tries to update their information if it's incorrect and they click update, it goes straight to a blank white page. No error code or anything. I'm guessing this is a problem in the code somewhere so any ideas?

Using the newest version of ZenCart with the newest version of Sheffield Responsive Blue. :frusty:

This is my first site using ZenCart and I'm loving learning PHP more in-depth.

Cheers guys.

Ash.

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

6 Jun 2016, 6:39 PM
#157
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 @CSGODeimos, sounds like you may be missing some changes in the frontend files. Did you upload the following file(s) to your store?

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

Note: make sure YOUR_TEMPLATE is renamed to your active template name.

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, 2:51 PM
#158
csgodeimos avatar

csgodeimos

Zen Follower

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

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

jackie.taferner:

Hi @CSGODeimos, sounds like you may be missing some changes in the frontend files. Did you upload the following file(s) to your store?

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

Note: make sure YOUR_TEMPLATE is renamed to your active template name.

Thanks for the reply. I unzipped the file again, copied those files over to the right places and replaced them (I must of already added them in earlier). It's still doing the same thing. This is literally the only problem I'm having and it's the only think stopping my site from being live :( I love the module, it's amazing and it must be something I've done but I can't figure it out.

Any code or anything I can copy for you to look at?

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

7 Jun 2016, 6:49 PM
#159
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

Ok, let's see if we can figure out exactly what the error is. Can you try following these steps and let me know what your logs say?

https://www.zen-cart.com/content.php?124-blank-page

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:00 PM
#160
csgodeimos avatar

csgodeimos

Zen Follower

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

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

jackie.taferner:

Ok, let's see if we can figure out exactly what the error is. Can you try following these steps and let me know what your logs say?

https://www.zen-cart.com/content.php?124-blank-page

I fixed it that issue :P There's no white page now! (I just copied my original header_php.php over and it seemed to fix it for the most part.

But now it's now it's showing the field as empty when I click update account settings. (The data used when signing up still goes across to the sql database and in customer info on zen cart admin panel).

Not only is it showing the field as empty but if I type new data into that and click update, it doesn't change in my database or under customer info in the zencart admin panel. The last error log I got was at 1:50 and that was when I was having the blank page issue. It's not giving me an error log for it :S

Last error log:

[07-Jun-2016 19:50:12 Europe/Berlin] Request URI: /store/fiFty-Ica-plumS/customers.php?page=1&cID=18&action=edit, 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\customers.php:10]

[07-Jun-2016 19:50:12 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

I appreciate all your help, thanks for having this thread for us noobs.

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