Questions about Payment Form extension

sample Fee Calculation Script

More
11 years 6 days ago - 11 years 6 days ago #29773 by jai
sample Fee Calculation Script was created by jai
could some one please help. I need a sample Fee Calculation Script.

I have a camp booking form, with 2 calculation fields
NameValuesFee Value
pf_Adult1 - €50

2 - €100

3 - €150

4 - €200

5 - €250
50

100

150

200

250
pf_No_of_Children1 - €25

2 - €50

3 - €75

4 - €100

5 - €125

6 - €150
25

50

75

100

125

150

The [total payment] then should be [pf_No_of_Children]+[pf_Adult]

STEP 1:

I want to add a 3rd field where members prefer to pay just an [pf_advance_amount], in this case the value in [pf_advance_amount] field should then become the total amount to be checked out.

STEP 2:
ALSO [pf_advance_amount] should be deducted from the [total payment] and put into a 4th field Called [pf_Balance].


is this possible, i am currently finding it to do STEP 1 AND STEP 2

Any help will be much appreciated...
Last edit: 11 years 6 days ago by jai. Reason: correction

Please Log in or Create an account to join the conversation.

More
11 years 5 days ago #29811 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: sample Fee Calculation Script
Hi

You can submit a support ticket sending me administrator account of your site. I will try to help you with step #1. For step #2, unfortunately, it is not possible.

Tuan

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #38509 by tripledm
Replied by tripledm on topic Re: sample Fee Calculation Script
Is it possible to update the documentation to include a few samples.

Trying to add a % fee to the total amount via the "fee calculation script" field but having no luck.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc