View Single Post
  #6  
Old 02-17-2003, 02:04 PM
 
Nico van de Putte Nico van de Putte is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 5
 

Default

Hi,

I got this working!

You should have an option list first where you make up your own option class (for instance MEDIA)
Option Text is the displayed text. SELECT MEDIA TYPE:
Option list is the list. Something like: CD-ROM=+0
(option 1 is CD-ROM and will cost +0 of your currency over the default price)

Theproduct options validation can be used to manipulate things based on the selection made in the option list

if (product_option('MEDIA').selectedIndex == 1)
{ alert('You have chose the CD-ROM option'); return true; }

If you have more then one selectable item SELECTEDINDEX will increase by one for every new choice.

Hope this helps?

Nico
Reply With Quote