View Single Post
  #3  
Old 08-17-2008, 08:48 AM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default 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.
Reply With Quote