Calculate price with & without discount card
-
Hello.
I want to make a calculator for my travel site which will help people to calculate whether a sightseeing pass will save them money.
So far I’ve modified the “Simple Operations” form by deleting fileds 2, 4 and 6 and then modifying field 8 (adding extra checkboxes and changing the names and values) so that you can select the different attractions which you want to visit using the check boxes and the total price of visiting the selected atractions is displayed in field 9.
This works well on my localhost test site.
I now wnat to add a drop down list field at the top of the form which allows you to select between the standard price and the price with a discount card for visiting the chosen attractions.
Unfortunately this isn’t a simple % calculation since the discounts for each attraction are different.
Is there some way that I can change the value for each of the check boxes depending on the discount card chosen from a drop down list?
What I mean is that if in the drop down list I select “no discount” then Item A = $10 , Item B = $5 Item C = $8, Sum of selected Items = $23
Then if in the drop down list I select “discount card A” then Item A = $8, Item B= $1 Item C= $3, Sum of selected items = $12 (for example)
Is this possible?
- The topic ‘Calculate price with & without discount card’ is closed to new replies.