Re: Validation script to check if custom text field has been filled
http://www.x-cart.com/xcart_manual/online/?product_options3.htm
Example:
HTML Code:
var value = product_option_value("Color");
var value2 = product_option_value("Size");
if (value !== false && value == "Blue" && value2 !== false && value2 == 'XL') {
alert("Sorry, the combination of Blue and XL is not available currently. Please check back later");
return false;
}
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)
ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer
Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
|