Form:
http://web01.dnsnetworks.ca/foundationhockey2/index.php/fees/full-payment
All I want is for the user to click on their program of choice and hot pay now (submit button)
I have a Pay pal redirect in my events/on submit and a custom code:
<?php
$price_array = array(
'Spring AAA Option A (2 tournaments)' => 678.87,
'Spring AAA Option B (3 tournaments)' => 734.50,
'Spring AAA Option C (4 tournaments)' => 789.87,
'Spring Foundation' => 423.75,
'Summer Foundation' => 197.75,
'Gladiator Training Option A (Spring & Summer)' => 593.25,
'Gladiator Training Option B (Summer)' => 271.20,
);
$form->data['price'] = $price_array[$form->data['register_for']];
?>
[attachment=0]image1.gif[/attachment]
Can someone please help me?
Maybe I'm doing something wrong on my actual page?
[attachment=1]image2.gif[/attachment]
http://web01.dnsnetworks.ca/foundationhockey2/index.php/fees/full-payment
All I want is for the user to click on their program of choice and hot pay now (submit button)
I have a Pay pal redirect in my events/on submit and a custom code:
<?php
$price_array = array(
'Spring AAA Option A (2 tournaments)' => 678.87,
'Spring AAA Option B (3 tournaments)' => 734.50,
'Spring AAA Option C (4 tournaments)' => 789.87,
'Spring Foundation' => 423.75,
'Summer Foundation' => 197.75,
'Gladiator Training Option A (Spring & Summer)' => 593.25,
'Gladiator Training Option B (Summer)' => 271.20,
);
$form->data['price'] = $price_array[$form->data['register_for']];
?>
[attachment=0]image1.gif[/attachment]
Can someone please help me?
Maybe I'm doing something wrong on my actual page?
[attachment=1]image2.gif[/attachment]
Hi Melanie,
Your config is generally correct, but there are few things which may cause issues, your form name should not have "-", instead you can use "_", you should not use spaces or any special characters in the array keys as you do, instead use simple values for your "register_form" field and the array keys.
Regards,
Max
Your config is generally correct, but there are few things which may cause issues, your form name should not have "-", instead you can use "_", you should not use spaces or any special characters in the array keys as you do, instead use simple values for your "register_form" field and the array keys.
Regards,
Max
This topic is locked and no more replies can be posted.