This will help the folks that simply want to get exceptions to work! Beware that if you are on a mac like I am, no alerts will pop until you do what is lsited below. I hit it on a PC and the behavior is that if there is 1 exception and 10 options, it will only alert for that single exception and proceed to the cart.
Here is the secret that is not documented anywhere:
1. If you have 10 options, you'd better make exceptions for all 10. The numbering does not start at 1, it starts at 0.
The Real example:
if (product_option('Shirt').selectedIndex == 0)
{ alert('You have chosen Color White Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 1)
{ alert('You have chosen Color Gray Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 2)
{ alert('You have chosen Color Charcoal Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 3)
{ alert('You have chosen Color Laguna Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 4)
{ alert('You have chosen Color Blue Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 5)
{ alert('You have chosen Color Orange Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 6)
{ alert('You have chosen Color Purple Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 7)
{ alert('You have chosen Color Yellow Shirt'); return true; }
if (product_option('Shirt').selectedIndex ==
{ alert('You have chosen Color Red Shirt'); return true; }
if (product_option('Shirt').selectedIndex == 9)
{ alert('You have chosen Color Green Shirt'); return true; }
I am getting it to pop up with the correct color selections now. Now it's on to capturing and storing so that I can construct an image name.
Once I figure this out, I'll share it here as well. (If I am successful of course) Maybe someone else can jump in with suggestions on how to change the alert to a javascript variable that can be used in php!
to be continued ....