calculator plugin query

raunhar

Member
I am doing a form for a travel web site, where when the user enters the requirements, the cost can be calculated.for eg.
tour1 : single person :cost 200$ / Twin sharing: 175$
Guide: Yes/ No . If yes then : 50$
and some more such fields.

At the end, the total cost is calculated which gets displayed to the user before submitting the form.
when submitted the paypal form plugin should run.
 
Create dropdown element tour with suboptions
name=single person->value=200
name=Twin sharing->value=175
Create dropdown element guide with suboptions
name=No->value=0
name=Yes->value=50

This code in calc element.
PHP:
$tour = '{table_name___element_tour_raw}';
 
$guide = '{table_name___element_guide_raw}';
 
$total = $tour + $guide;
Set Calc on load and Ajax Calculation to Yes.

Should work.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top