Zen Cart Logo
Forums / General Questions / Make Fax Number Required

Make Fax Number Required

Locked

Views: 1,752

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 Nov 2007, 11:32 PM
#1
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Make Fax Number Required

How can i make the fax number friend required?

I turned that field into a Tax Id field and need to have it required but cant figure it out for the life of me

Thanks

21 Nov 2007, 11:39 PM
#2
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: Make Fax Number Required

I finally figured it out

includes/modules/YOURTEMPLATE/create_account.php
About Line 72 Find

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

BELOW ADD

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

I hope this helps someone

21 Nov 2007, 11:47 PM
#3
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: Make Fax Number Required

Ok but on the Account Edit field it lets you take out the Tax Id number and sumbit it ok,

How do you make it required in that section???

21 Nov 2007, 11:49 PM
#4
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: Make Fax Number Required

Also how can i get the Company Name to be i nthe account edit page

31 Dec 2009, 10:55 PM
#5
bogie avatar

bogie

Zen Follower

Join Date:
Feb 2008
Posts:
132
Plugin Contributions:
0

Re: Make Fax Number Required

Okay - here's what I did - basically just copied the "telephone" text from includes'modules\mytemplate\create_account.php down a line or two, and changed the words "telephone" to "fax" - and...

it works.

EXCEPT that it doesn't prompt the user to enter a fax number if they didn't in the first place. Any idea how I can change that, or at least add a nice little red asterisk?