Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    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

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    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

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    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

  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

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    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,

  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.

 

 

Similar Threads

  1. Make Fax Number Required
    By CnTGifts in forum General Questions
    Replies: 4
    Last Post: 31 Dec 2009, 11:55 PM
  2. Replies: 1
    Last Post: 8 Oct 2009, 06:35 PM
  3. Making FAX NUMBER required?
    By kgmmusic in forum Managing Customers and Orders
    Replies: 2
    Last Post: 10 Aug 2009, 06:47 AM
  4. Fax Number in account editing
    By kuroi in forum Bug Reports
    Replies: 2
    Last Post: 15 May 2007, 07:25 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