• 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: Date Calculation With PayPal Integration

Date Calculation With PayPal Integration 12 years 1 month ago #16690

I have a registration form where the user selects a start date and end date. I would like to calculate the number of days between those two dates, multiply that by a certain dollar amount and have that passed to the PayPal total. Has anyone done anything similar?
The administrator has disabled public write access.

Re: Date Calculation With PayPal Integration 12 years 1 month ago #16694

  • royce
  • royce's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 52
  • Thank you received: 5
Sounds like you would need some custom Javascript that is called when the form is submitted. It would calculate the amount of days then populate the PP variable. Not trivial, but not very complex either.
The administrator has disabled public write access.

Re: Date Calculation With PayPal Integration 12 years 1 month ago #16751

I got the calculation working in the script - so how do I populate the PP variable with the result of my calculation?
The administrator has disabled public write access.

Re: Date Calculation With PayPal Integration 12 years 1 month ago #16780

  • royce
  • royce's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 52
  • Thank you received: 5
In the Javascript, just assign your calculated value to the PP field.
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!