View Single Post
  #4  
Old 08-08-2007, 01:21 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: variations javascript help

change it to

Code:
var value = product_option_value("men_size"); var value2 = product_option_value("colour_001"); var val1 = value.toLowerCase().indexOf("select"); var val2 = value2.toLowerCase().indexOf("select"); if (val1 > -1 && val2 > -1){ alert ("please choose a size and colour"); return false; } elseif (val1 > -1){ alert ("please choose a size"); return false; } elseif (val2 > -1){ alert ("please choose a colour"); return false; } else return true;


in the next few days i will be posting up a mod to check if all the options have been selected, i posted the pseduocode to it in that other thread you mentioned
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote