• 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: Min value!

Min value! 9 years 2 months ago #34219

  • lombiz
  • lombiz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
Hi,

I am doing a price calculation and I need a minimum value to show if calculation is less.

I.e I dont want the price to be less than 2500 ever.

That would generally work with a if statement but I dont know how to do that is RS Form.

Thanks in advance.
BR,
Peter
The administrator has disabled public write access.

Min value! 9 years 2 months ago #34243

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Hello,

you can try using the paypal parameters as described here:

https://www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/personalize-paypal-parameters-per-form.html

Basically, you will need something like this:
if ( (int) $_POST['form']['rsfp_Total'] < 2500){
  $paypal = RSFormProPayPal::getInstance();
  $paypal->args['amount'] = 2500;
}

PS: Please treat the above code as an example and not a solution
My help is not official customer support. To receive your support, submit a ticket by clicking here
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!