View Single Post
  #2  
Old 11-07-2007, 02:15 PM
 
derrick derrick is offline
 

Member
  
Join Date: Apr 2007
Location: San Diego, CA USA
Posts: 26
 

Default Re: Validation onChange

James,

I just happen to be in that piece of code as I saw this message and see that the option exceptions are checked with each option change. Everytime an option is changed, it triggers via the following call:

onchange="javascript: check_options();"

check_options() is in the included in the skin1/modules/Product_Options/func.js and makes a call to check_exceptions() right at the bottom of the check_options function.

This is bases on 4.1.8 Gold.

I am looking to create a little code to use the exceptions to dynamically build only valid product options based upon the current selection... wish me luck.

-Derrick

Quote:
Originally Posted by jwwceo
I have lots of exceptions and don't want my customers to have to press "add to Cart" to find out if their order is possible.

Is there any easy way to run the Exception Validation script every time a variant pull down is used.

Best,

James
__________________
-Derrick
Reply With Quote