Page 5 of 14 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 138
  1. #41
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Add a field into create account

    If you're troubleshooting errors on the admin side, you'll need to put the debug logging utility in the admin folder structure too. And of course ensure that the main cache folder is writable.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #42
    Join Date
    Aug 2008
    Location
    Rockford, IL
    Posts
    59
    Plugin Contributions
    1

    red flag Re: Add a field into create account

    I tried something else. I re-uploaded all my backup files that I saved prior to starting on this tax id thing. Those that created the field, and those that allowed the client to change the field. Everything is back to the way it was when I could load the admin page.

    I still get a blank page for the admin page.

    I am really lost at this point. I cannot even get in to see the client information when an order comes through. I cannot update orders with the delivery information either.



    Any help would be greatly appreciated.

  3. #43
    Join Date
    Aug 2008
    Location
    Rockford, IL
    Posts
    59
    Plugin Contributions
    1

    Default Re: Add a field into create account

    I did put the debug logging utility in the admin folder structure. I cannot tell if the main cache folder is writeable or not and my host does not allow changing permissions.

  4. #44
    Join Date
    Aug 2008
    Location
    Rockford, IL
    Posts
    59
    Plugin Contributions
    1

    Default Re: Add a field into create account

    Following is the mess I get, what I am supposed to do with the mess I have no idea.

    [03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.p hp on line 650
    [03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.p hp on line 650
    [03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.p hp on line 650
    [03-Dec-2008 14:42:31] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/english/header.php' (include_path='.;c:\PHP\pear') in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.p hp on line 650

  5. #45
    Join Date
    Aug 2008
    Location
    Rockford, IL
    Posts
    59
    Plugin Contributions
    1

    Default Re: Add a field into create account

    Nevermind, crisis averted. Somehow I must have overwritten one of my english.php files and saved the wrong one. Fortunately, I have a backup-backup copy at home. After work I uploaded both the english.php files and walah!

    Thank you DrByte for your assistance and patience.

    God Save the Zen!


  6. #46
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Add a field into create account

    Quote Originally Posted by WilpackPackaging View Post
    [03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) function.main: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.p hp ...
    The message indicates that the "includes/languages/english/header.php" under the /admin/ folder is missing.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #47
    Join Date
    Aug 2008
    Location
    Rockford, IL
    Posts
    59
    Plugin Contributions
    1

    Default Re: Add a field into create account


    I got error messaging to work for the tax id. Here are the steps that I followed. Some of it came from a previous post by kdtaylor, but did not work for some reason. After playing around I have made these changes to get it to work.

    1.
    /includes/languages/YOURTEMPLATE/english.php

    A. SEARCH FOR:
    define('ENTRY_TAXID_NUMBER_TEXT', '*');

    …RIGHT AFTER THAT YOU SHOULD SEE THE FOLLOWING LINE…

    define('ENTRY_TAXID_NUMBER_TEXT', '*');

    NOTE: YOU SHOULD ALREADY HAVE THESE ON THE PAGE IF YOU HAVE ALREADY SET UP YOUR TAX ID FIELD. IF YOU HAVE NOT ALREADY SET UP YOUR TAX ID FIELDS PLEASE SEE THE PREVIOUS POSTS ON HOW TO SET UP THE FIELD. THESE INSTRUCTIONS DEAL ONLY WITH SETTING UP ERROR MESSAGING!

    B. IN BETWEEN THESE TWO LINES INSERT THE FOLLOWING:

    define('ENTRY_TAXID_NUMBER_ERROR', 'Your Tax ID Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters. Please use format xx-xxxxxxx.');

    NOTE: I USED THE “ENTRY_TELEPHONE_MIN_LENGTH” BECAUSE I COULD SET THAT LENGTH IN THE ADMIN SECTION. I SET IT TO A MINIMUM LENGTH OF “10”. IF YOU HAVE THIS SET TO ANOTHER VALUE, EITHER CHANGE THE VALUE OR USE A DIFFERENT MINIMUM ENTRY. YOU CAN ALSO CHANGE THE TEXT OF THE MESSAGE TO SUIT YOUR NEEDS.

    2.
    /includes/modules/pages/create_account/jscript_form_check.php

    A. SEARCH FOR:

    <?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>
    check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");
    <?php } ?>

    DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE.

    <?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>
    check_input("taxid", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TAXID_NUMBER_ERROR; ?>");
    <?php } ?>

    3.
    /includes/modules/pages/account_edit/jscript_form_check.php

    A. SEARCH FOR:

    <?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>
    check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");
    <?php } ?>

    DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE.

    <?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>
    check_input("taxid", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TAXID_NUMBER_ERROR; ?>");
    <?php } ?>

    4.
    /includes/modules/create_account.php

    A. SEARCH FOR:

    if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
    $error = true;
    $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
    }

    DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE.

    if (strlen($taxid) < ENTRY_TELEPHONE_MIN_LENGTH) {
    $error = true;
    $messageStack->add('create_account', ENTRY_TAXID_NUMBER_ERROR);
    }


    Good luck with it and have fun.

    God save the Zen!

  8. #48

    Default Re: Add a field into create account

    I'm having the following problem..

    I've successfully added three additional fields as per this thread's instructions.. However there is a problem on the admin panel side.

    If I pull up the customers info on the admin panel the 3 added fields appear ...no problem...

    However if I go and make changes to the customer account in the admin panel and hit update the 3 added fields go to blank and I lose the customers extra field information.. The database is also blanked...

    Any Advice?

    Thanks,

  9. #49
    Join Date
    Aug 2008
    Location
    Rockford, IL
    Posts
    59
    Plugin Contributions
    1

    Default Re: Add a field into create account

    I hadn't tested that on my site, but since your post I have tested it and it is working fine on my site.

    The best thing I can say is to go back and double check the coding on each and every change that you made.

    1. Double check that the fields in your database are accurately typed in your coding.

    2. Make sure that there are no extra spaces in your coding.

    3. Also, look for '' not to be confused with ". The first is two apostrophies. The second is one quote.

    4. If all else fails, restore a backup of all the pages that you modified and start over.

    5. However, I would recommend that you work with one field start to finish and make sure it works before adding a second or third field.

    Good Luck

    God save the Zen!

  10. #50

    Default Re: Add a field into create account

    DOH!

    $customers_taxid = zen_db_prepare_input($_POST['customers_taxid']);

    Didn't add the customers_ infront of field.. in the customers.php file..

    Sometimes your to close to the code for too long (I did double check) ..Stepped away and revisited for a 3rd time and voila!

 

 
Page 5 of 14 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. How do I add a custom pulldown field to create account page?
    By margarita in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 May 2008, 07:48 PM
  2. add a field to "create account"
    By bobio in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jan 2008, 07:35 AM
  3. Create account Form field allign
    By manfer72 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jan 2008, 12:01 AM
  4. Create a requested field in registration account
    By rosponina in forum Managing Customers and Orders
    Replies: 6
    Last Post: 31 Jul 2006, 09:15 PM

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