| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Product Options | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|