Calculate price from 2 drop down lists

  • Saulng
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0

Saulng created the topic: Calculate price from 2 drop down lists

Hi, I was wondering if there's a way to calculate the price of registering a player depending on 2 list?
List one, named Division: This list has 4 options, each with their own price.
Div.1 $100 up to 12 players
Div.2 $200 up to 14 players
Div.3 $300 up to 18 players
Div.4 $400 up to 18 players

List two, named Number of players: has a list of player from 1 - 20.

I would like to calculate the price using the cost of list one (division list) and the number of players list two. So if someone selects Division 1 ($100) and selects 15 players, I want to add the 3 extra players not included in the team price to the total cost of registration. i.e $100 + (3 x $ per player price)
The Number of players list is already setup to pass the value to a PayPal button with the name of PayPalSelect.
Any help is appreciated.
Thanks
#233946
  • Posts: 1740
  • Karma: 62
  • Thank you received: 217

mihaela replied the topic: Calculate price from 2 drop down lists

Hello,

There is a way to calculate the final price based on more than one field.

Please take a look at the following piece of documentation thttps://crosstec.org/en/support/online-documentation/breezingforms/12-examples-scripts/91-calculating-textfields.html to see how to make calculations with values entered in form fields. in your case you would pass the calculated sum to, I assume "donationAmount" field.

Let me know whether you've managed to make your form work as you wanted.

Regards,

Mihaela
#233966
Moderators: ForumSupporttomeperica
Time to create page: 0.060 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here