View Single Post
  #8  
Old 09-11-2007, 10:41 AM
 
creativearc creativearc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 34
 

Default Re: Requiring options when adding to cart

davide101,

It is quite simple. If you are using "Product Variants" to select a color of a product, add a "Select One..." or something to this list and have it displayed first. Then in your Javascript Validation, do something like this:

Code:
var value = product_option_value("color"); if (value == 'Select One...') { alert("Please select the color"); return false; }
__________________
CreativeArc
---------------
X-Cart Pro
Version: 4.1.8
Reply With Quote