Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,068
    Plugin Contributions
    0

    Default Fax Number: Create Account be required

    After reading the different threads on this issue, I am still stumped.
    I have designed a wholesale web site.
    Client logs in and create account I need the following.
    Change Fax Number to Tax ID Number and make it a required field.

    Yes, I have made these changes includes/languages/yourtemplate/english.php
    define('ENTRY_FAX_NUMBER', Tax ID Number:');
    define('ENTRY_FAX_NUMBER_ERROR', 'Please enter your Tax ID Number');
    define('ENTRY_FAX_NUMBER_TEXT', '*');

    But, when Tax ID Number on the create account page is skipped A error message does not appear.

    Yes, includes/modules/yourtemplate/create_account.php ; I believe is where a code is inserted.

    Any suggestions
    Mark
    Hare Do - Does the rabbit beat Zen "never".
    Zen Cart 1.5.1 Update Release Need help Purchase the Book

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,369
    Plugin Contributions
    0

    Default Re: Fax Number: Create Account be required

    Well, if that is copied and pasted in, there is a missing single quote mark in front of the word "Tax" in the first define statement. Zen is a sensitive critter and will be thrown off by that.

    Rob
    Breakfast: the most important donut of the day.

  3. #3
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,068
    Plugin Contributions
    0

    Default Re: Fax Number: Create Account be required

    Ron,
    Keen eye, but I noticed this small error after the post.
    Any suggestions on my second question.

    Mark
    Mark
    Hare Do - Does the rabbit beat Zen "never".
    Zen Cart 1.5.1 Update Release Need help Purchase the Book

  4. #4
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Fax Number: Create Account be required

    I don't see an entry under min values for the fax number, so its not being checked on account creation.

    You'll need to add something like

    if (strlen($fax) < 8) {

    $error = true;

    $messageStack->add('create_account', 'Hey, you forgot your Tax ID');

    }

    to create_account.php

    I guess you could make this harder and add the correct checks for min values, an entry in your languages file etc, but that sounds a lot like work
    Lazy and willing to work very hard to stay that way

  5. #5
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,068
    Plugin Contributions
    0

    Default Re: Fax Number: Create Account be required

    Ok, I added this code to line 233
    includes/modules/haredo/create_account.php

    if (strlen($fax) < 8) {
    $error = true;
    $messageStack->add('create_account', ENTRY_FAX_NUMBER_ERROR);
    }

    But, did not get an error message when I created a new account when I do not fill a Tax ID Number in the cell.

    Mark,
    Mark
    Hare Do - Does the rabbit beat Zen "never".
    Zen Cart 1.5.1 Update Release Need help Purchase the Book

  6. #6
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Fax Number: Create Account be required

    Interesting. it will throw an error for me, inserted at 101 however I'm not using a language file to grab the error message.
    Lazy and willing to work very hard to stay that way

  7. #7
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,068
    Plugin Contributions
    0

    Default Re: Fax Number: Create Account be required

    This is my codes.

    includes/languages/yourtemplate/english.php
    define('ENTRY_FAX_NUMBER', 'Tax ID Number:');
    define('ENTRY_FAX_NUMBER_ERROR', '');
    define('ENTRY_FAX_NUMBER_TEXT', '*');


    includes/modules/yourtemplate/create_account.php
    97 if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
    $error = true;
    $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);
    }

    102 if (strlen($fax) < 8) {
    $error = true;
    $messageStack->add('create_account', 'Please enter your Tax ID Number');
    }

    107 if (ACCOUNT_DOB == 'true') {
    if (ENTRY_DOB_MIN_LENGTH > 0 or !empty($_POST['dob'])) {
    if (substr_count($dob,'/') > 2 || checkdate((int)substr(zen_date_raw($dob), 4, 2), (int)substr(zen_date_raw($dob), 6, 2), (int)substr(zen_date_raw($dob), 0, 4)) == false) {
    $error = true;
    $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
    }
    }
    }

    If need to take a look? http://www.haredo.com/wholesale/inde...action=process

    Mark
    Mark
    Hare Do - Does the rabbit beat Zen "never".
    Zen Cart 1.5.1 Update Release Need help Purchase the Book

 

 

Similar Threads

  1. User Cannot Create Account. HELP!
    By yxw168 in forum General Questions
    Replies: 3
    Last Post: 19 Feb 2007, 08:24 PM
  2. Create user account
    By yorkc in forum Managing Customers and Orders
    Replies: 8
    Last Post: 4 Feb 2007, 03:35 PM
  3. Replies: 13
    Last Post: 1 Nov 2006, 07:48 AM
  4. Issues with State Field in Create Account
    By heavenlynights in forum Upgrading from 1.3.x to 1.3.9
    Replies: 19
    Last Post: 6 Oct 2006, 05:28 PM
  5. Error in create an account Link
    By marie893 in forum General Questions
    Replies: 1
    Last Post: 6 Jun 2006, 08:39 AM

Bookmarks

Posting Permissions

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