Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Edit/Update Account Doesn't Work after Adding a new Account Field

    I've been working on this problem all day (including searching around here for a couple of hours) and can't figure it out, so I'm throwing myself at your feet. Anyone's feet. "-)

    Scenario

    Modified TABLE_CUSTOMERS to add a Cell Phone Number Field. Per another thread here, followed Linda's guidelines for locating files and using "customers_fax" field as example for the new account field.

    Works great... as long as all I am doing is "acting as a new customer creating an account" or editing an account via the Admin > Customers feature. BUT, if I try to edit the Account Info as the logged in customer, it's a no go.

    General Info

    -- New/Clean/From Scratch install of ZC 1.3.6 without any other modifications or plugins or contributions.

    -- Compared my modified files to the original, unmodified files ~from the zip~ and there are no differences except the lines I added. I've proofread them at least 4 times... they are done correctly, at least if I squint just right. "-)

    -- Added new field to db exactly as "customers_fax" was defined.

    -- Running locally on Win XP Pro (also tested it on XP Home) using XAMPP 1.4.11, PHP 4.3.10 and MySQL 4.1.8. Also tested it on an older installation of XAMPP running PHP4.x and MySql (not sure of version). Same results across the board.

    -- Have cleaned system and rebooted, checked file permissions, config files, etc. on the off chance I was missing something there... no change.

    Catalog Side

    db TABLE_CUSTOMERS is being written properly during account creation;
    db TABLE_CUSTOMERS content is NOT being displayed in full during View/Edit My Acount -- only the info from the original fields is displayed; further, those are also the only fields I can update via the View/Edit My Account function, any change to the custom/new field is not written to the db.

    Files modified (all using the Override system) = includes/modules/pages/account_edit/header_php.php, includes/modules/create_account.php, templates/tpl_account_edit_default.php, templates/tpl_modules_create_account.php, includes/languages/english.php

    Admin Side

    db TABLE_CUSTOMERS content is being displayed AND updated properly from the Admin area;

    Files modified (no Override possible of course) = admin/customers.php, admin/includes/languages/english.php



    Everywhere that "customers_fax" or "fax" or "$fax" appears I have copied and inserted the exact same statement for the new field. I simply cannot see why the account_edit process is not working on the Catalog side, I obviously have a mental block.

    Am I missing a file somewhere? Or does someone have another idea as to what might be wrong? Could it possibly be something to do with the whole local server thing and sessions/cookies or ? The only thing I haven't done is installed to the hosting server to see if the problem is duplicated there.

    Thanks!

    Becky

  2. #2
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: Edit/Update Account Doesn't Work after Adding a new Account Field

    Would it help anyone if I provided any of the above files?

    Keeping fingers crossed someone might have an idea of what I'm overlooking.

    Thanks!

    Becky

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Edit/Update Account Doesn't Work after Adding a new Account Field

    Becky-

    Using the Developers Tool Kit in the admin, do a search for customers_fax and make sure you have added your changes to all of the files needed.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: Edit/Update Account Doesn't Work after Adding a new Account Field

    Quote Originally Posted by Kim View Post
    Becky-

    Using the Developers Tool Kit in the admin, do a search for customers_fax and make sure you have added your changes to all of the files needed.
    Hi Kim,

    Yep, did that several times - both before and after. In fact, that's how I got the initial list of files and sections that needed changes to begin with. In troubleshooting this, I've searched not only "customers_fax" but "fax" and "$fax". Overkill, you know. "-)

    Actually did a print of the results and checked off each file/section as I did it to make sure I didn't overlook anything.

    After making my changes and having this problem crop up, also did a search of my new field name and made sure that it was in each file/section that "customers_fax" was located and that there were no "speeling" errors. "-)

    Anything else you can think of?

    Thanks!

    Becky

  5. #5
    Join Date
    Oct 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Edit/Update Account Doesn't Work after Adding a new Account Field

    I am having the EXACT same problem, so I would love to hear anyone's feedback as to what might be happening. On my customer account edit page, the field shows up, but their info to edit it does not - it's just a blank field... please someone help!

  6. #6
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: Edit/Update Account Doesn't Work after Adding a new Account Field

    Quote Originally Posted by LindseyB View Post
    I am having the EXACT same problem, so I would love to hear anyone's feedback as to what might be happening. On my customer account edit page, the field shows up, but their info to edit it does not - it's just a blank field... please someone help!
    I apologize for never posting here what the solution to my particular problem was -- I'll fix that right now! "-)

    The problem is/was one that many make when customizing "things" outside of the base template area -- creating an override directory where it is not recognized by the ZC system.

    In this case, I had created a "my_template" directory under modules/pages/account_edit. Because the override system doesn't work there, it wasn't picking up my modifications to "header_php.php" (a core file). It's not apparent during testing because the new fields display in the Account Edit screen (from the custom template version of tpl_account_edit.php).... but the data from the POST could not be processed because the original "header_php.php" (core file) did not contain instructions to do anything with that POST data. So it just gets ignored/lost/shot into space. "-)

    [What's really bad about this is I KNEW better! Good lesson in not working 48 hour stretches without at least a short nap or some of Ajeh's coffee. hehe]

    Repeating ZC Override Rule of Thumb: If there is not a "classic" folder in the directory where you are making a modification (for instance, under modules/page/[page_name]), you cannot use an override -- you are going to have to jump in and modify the core file! Be sure to save differentiated copies of both the original file(s) and the new file(s) so that you can "fall back" and/or not lose your changes during a future upgrade.

    Hope this helps anyone else who runs into this problem!

    Cheers,

    Becky

 

 

Similar Threads

  1. v151 New account created after payment but automatic account creation is set to no
    By sagilca in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 13 Nov 2013, 02:48 PM
  2. v151 Adding new mandatory field in account creation
    By ejunk in forum Managing Customers and Orders
    Replies: 1
    Last Post: 3 Jan 2013, 10:30 PM
  3. Adding Additional Field Account Edit Page
    By jaredt112 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Apr 2010, 05:49 AM
  4. Can "create account" be used to edit/update account info?
    By toneyourlife in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 Jun 2008, 12:47 AM
  5. [DONE] Bug in referrals field of account-edit template
    By GlassHoppah in forum Bug Reports
    Replies: 2
    Last Post: 25 Jun 2006, 08:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg