• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Discount code integration in RSForm.

Discount code integration in RSForm. 10 years 2 months ago #30424

Can anyone offer guidance please:

I have searched for the PHP code etc to apply a discount to a total price via a RSEvents Coupon. Which i understand and have working. What i can't get to work is the recalculation of the total that gets passed to Paypal which happens as soon as the form is submitted. The coupon is recognized and all appears well, but the total passed after submission to Paypal remains without the discount applied.
Also the Total on the form is not updated, but i presume that is because its a PHP script process after submission?

The code i have in PHP script is as taken from a previous posting:
$amount=$_POST['form']['rsfp_Total']; 
if($_POST['form']['form[RSEProCoupon]'] == 'Riders')
   $_POST['form']['rsfp_Total'] = $amount - 10%;

Many thanks in advance
Last Edit: 10 years 2 months ago by sheilawoollam. Reason: spelling
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!