Hello, I have created a form
Reference: http://web01.dnsnetworks.ca/foundationhockey2/index.php/component/chronoforms/?chronoform=Player-Registration-Form&Itemid=671
I have added a Pay pal trial action within On Submit under Events (I hope I'm doing this right)
When the user clicks an Option within the Drop Down Box "Register for:" (Options being: Spring AAA, Spring Foundation, Summer, Fall/Winter and Goaltending)
Each of these options are different prices:
Spring AAA = $100
Spring Foundation = $125
Summer = $ 150
Fall/Winter = $115
Goaltending = $200
Question - How do I add the dollar amount in Chronoforms?
Configure, under Options - I have the following:
Spring AAA=Spring AAA
Spring Foundation=Spring Foundation
Summer=Summer
Fall/Winter=Fall/Winter
Goaltending=Goaltending
Is this where I add the $ value? And how?
Reference: http://web01.dnsnetworks.ca/foundationhockey2/index.php/component/chronoforms/?chronoform=Player-Registration-Form&Itemid=671
I have added a Pay pal trial action within On Submit under Events (I hope I'm doing this right)
When the user clicks an Option within the Drop Down Box "Register for:" (Options being: Spring AAA, Spring Foundation, Summer, Fall/Winter and Goaltending)
Each of these options are different prices:
Spring AAA = $100
Spring Foundation = $125
Summer = $ 150
Fall/Winter = $115
Goaltending = $200
Question - How do I add the dollar amount in Chronoforms?
Configure, under Options - I have the following:
Spring AAA=Spring AAA
Spring Foundation=Spring Foundation
Summer=Summer
Fall/Winter=Fall/Winter
Goaltending=Goaltending
Is this where I add the $ value? And how?
I'm still lost ... is there an example with dollar values and not colors somewhere? So I need to add this PHP where exactly?
Hi Melanie,
The code would go in a Custom Code action in the On Submit event of your form:
Bob
The code would go in a Custom Code action in the On Submit event of your form:
<?php
$price_array = array(
'Spring AAA Option A (2 tournaments)' => 200,
'Spring AAA Option B (3 tournaments)' => 200,
'Spring AAA Option C (4 tournaments)' => 200,
'Spring Foundation' => 125,
'Summer Foundation' => 150,
'Gladiator Training Option A (Spring & Summer)' => '',
'Gladiator Training Option B (Summer)' => '',
'Goalies (coming soon!)' => 200,
'Fall/Winter (coming soon!)' => 115,
);
$form->data['price'] = $price_array[$form->data['register_for']];
?>
Bob
What would my action label be ? Its asking me that question right above my Custom code?
HI Melanie,
It's just a label for the action so that you know what it does. Call it something like "Calculation Script"
Bob
It's just a label for the action so that you know what it does. Call it something like "Calculation Script"
Bob
I added Calculation Script - still doesn't work
I posted a forum - can you have a look at it please ... would really appreciate!
I posted a forum - can you have a look at it please ... would really appreciate!
This topic is locked and no more replies can be posted.
