New Zenner
- Join Date:
- Dec 2013
- Location:
- Columbia, SC
- Posts:
- 3
- Plugin Contributions:
- 0
Post #141 by helenakj
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.
Started by jackie_taferner on 23 Jul 2010, 5:07 PM · Views: 265,048
New Zenner
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.
New Zenner
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?
New Zenner
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.
New Zenner
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 .
New Zenner
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.
Zen Follower
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?
Totally Zenned
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
New Zenner
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.
Totally Zenned
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.
Totally Zenned
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.
Totally Zenned
vandiermen:
extra fields become blank.
My fault, error in my code, all good now.
New Zenner
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
Totally Zenned
There is no uninstall script, but you can take the following steps to remove from your database:
BACKUP your database! In case something goes terribly wrong, you will want a backup to restore your database from.
Open PhpMyAdmin in your hosting control panel, and navigate to your Zen Cart database.
Find the following columns in your 'customers' table and delete them:
customers_extrafield
customers_extrafield2
customers_extrafield3
customers_extrafield4
Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.
New Zenner
Is there a way to require an already existing customer to fill out the newly added field before they can checkout?
Totally Zenned
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.
Zen Follower
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
Totally Zenned
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.
Zen Follower
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.phpNote: 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
Totally Zenned
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?
Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.
Zen Follower
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?
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
Tell staff why this post should be reviewed.