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
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
Ron,
Keen eye, but I noticed this small error after the post.
Any suggestions on my second question.
Mark
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
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![]()
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,
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
Interesting. it will throw an error for me, inserted at 101 however I'm not using a language file to grab the error message.
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
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting