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

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

Default Re: Validation onChange

It may be that you are missing the error message since it is generated differently while checking inline versus checking at the time of submit. When you submit the form and there is an exception, it pops up a nice little javascript dialog box. If you pick an invalid combination inline, it just generates a poorly formatted text string right above the Quantity box. If you have modified the template, you may have removed the error string that it uses to report inline.

Go into view/source and search for "exception_msg"
Hope this helps.

The code I am writing will be quick and dirty to just remove any specific html option lines based upon the current selections.
I'll post something when I get it done. In the mean time, you should be able to just report the error already being generated.

If you still have a problem, send me a message with a link to take a look.

-Derrick

Quote:
Originally Posted by jwwceo
Derrick,

I saw that too, but it doesn't seem to do anything. I can select variants which are not allowed and only when I press add to cart does it seem to check to see if they are exceptions or not.

If you have any tips on this I'd love to hear them....or if you get something working where only the valid options are displaying, that would be sweet. I have thought about paying X-cart for that functionality or try and build it myself, which would take me forever probably. The problem for us is that we have three pull downs...so the 2nd two have to be disabled until the first is selected and so on. This causes a page reload unless Ajax is used...so it's hairy...

that's why I was going to settle for this temp solution of having the exception checked onChange instead of Add to Cart.

Best,

James
__________________
-Derrick
Reply With Quote