The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Need help with updating a total price
I have used an example reservation code from this site from the freebies sections and modified it slightly so that its to my liking.
Please see it here…http://tinyurl.com/yh4sgbx
So i have a select options box to say how many guests will be attending 1 -5.
And what i need to do is dynamically update a grand total based on that selection.
So if they pick 1 guest then the total is £25 and so on.
I have also integrated a paypal button that i bought from Codecanyon which works well but at the minute it only sends a static value to paypal which is defined in the php at the top of the page…
So if anyone has any idea as to how i can get the total price to update and then change the value in the php so that it sends the correct cost to paypal i would be very very greatful.
Or, you could have the page submit each time the values changes, so your php could keep track of the number of guests.