ok so ive been trying at this, i only know a little php to keep me going, but im not sure what im meants to be doing at all!?
ive looked in the includes/functions/functions_lookups.php file and after this section of code
Code:
// text required validation
if (preg_match('/^txt_/', $option)) {
$check_attributes = $db->Execute("select attributes_display_only, attributes_required from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='" . (int)$product_id . "' and options_id='" . (int)preg_replace('/txt_/', '', $option) . "' and options_values_id='0'");
// text cannot be blank
if ($check_attributes->fields['attributes_required'] == '1' and empty($value)){
$check_valid = false;
}
}
return $check_valid;
}
ive added
Code:
//check for caps
if (ctype_upper($option) ==1) {
$check_valid = false;
}
and it didnt work :/
after looking it up (for ages lol) im really out of my depth can anyone help?
all i want is to trigger the alert system already there if the string is caps, i dont want to change i just want to let the customer know?
Bookmarks