Reply To: Changing price based on age

The only thing I can imagine in that regard are three custom price selects with different prices for the count of childrens in that age. Example: [price select Childslow “0:0,1:10,2:20,3:30” pn]
At onChange or at the start of the validation (js/ajax/send_validate.js) there must be a little javascript function that sums the amount of the selects and pass it to a hidden field with the name childs.
Something like

Select Code
1
2
3
4
5
6
7
8
9
var childamount1 = document.getElementById('custom_price1').value.split(":");
var childamount2 = document.getElementById('custom_price2').value.split(":");
var childamount3 = document.getElementById('custom_price3').value.split(":");

childamount1 = parseFloat(childamount1[0]);
childamount2 = parseFloat(childamount2[0]);
childamount3 = parseFloat(childamount3[0]);

document.getElementById('childs-hidden-field-id').value = childamount1 + childamount2  + childamount3 ;

childs-hidden-field-id / custom_price1 / custom_price2 / custom_price3 needs to be replace by the real ids in your form.