I need to build a calculator script. It will be a form that has 3 groups of radio buttons, each button will have a dollar value attached to it. And then a calculate button at the bottom. That seems fairly simple, however I am running in to a problem because I have sort of a discount that I want to apply if the user chooses certian items. For example
Item 1 - $10.00
Item 2 - $13.00
Item 3 - $15.00
Item 1 - $20.00
Item 2 - $23.00
Item 3 - $25.00
Item 1 - $30.00
Item 2 - $33.00
Item 3 - $35.00
So let's say someone chooses Item 1 in the first group, Item 1 in the second group and item 1 in the 3rd group. That would all calculate normally - $60.00. But if a user chooses Item 3 in group 1 and item 3 in group 2 and item 3 in group 3 they would get a discounted price, so rather than it being $75.00, it would be reduced to $60.00, but only if they choose those 3 things.
I'm afraid I am not making any sense.
When they make certain combinations with the items, a discount is applicable. So do I have to write out every possible combination with the special price?
If any of this resembles anything you can help with it is much appreciated.