Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Product Options
 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #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
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:49 PM.

   

 
X-Cart forums © 2001-2018