Thread: Product Options
View Single Post
  #1  
Old 02-08-2019, 01:22 PM
  Tronware's Avatar 
Tronware Tronware is offline
    
Join Date: Feb 2008
Location: Florida
Posts: 2
 

Default Product Options

I wanted my customers to select a Product-Specific attribute before they add the product to the cart. If the Customer adds the product to the cart without selecting an attribute. I want an alert saying "Please choose a product option". Below used to be a code that I would in old Version before XCart 5.

I used product options JavaScript enhancements which can be set on the same product -> Product Options tab in admin area. For example let's say you have an option named Test, in this case you may use the following enhancement:

Code: text
if (product_option('Test').selectedIndex == 0) {
alert("Please choose a product option");
return false;
}
return true;

Just wondering how I would be this to work with XCart 5?
__________________
Larry Arevalo
Owner
Tronware
Reply With Quote