• 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: Status field for Offline payment

Status field for Offline payment 10 years 10 months ago #27868

  • gutzo
  • gutzo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hi,

Can someone please assist me with the following matter.

I created an Online services order form with RSform Pro with the 2 payment options: Offline Payment and PayPal.

I added a upload button called "uploadpop" for the client to upload a Proof of Payment document when paying via Offline Payment.

I also created a hidden field called "Status" for showing the Status of the order in the frontend of the website via the Submissions Directory to keep the client as well as the administrator up to date with the order.

I want to display the word "Awaiting payment" in the hidden Status field when the Upload field (uploadpop) contains no value and as soon as the client uploads a Proof of Payment the Status field should change to "Payment received".

I tried creating an if statement in the Script called on form process section as follows:

if($_POST['form']['uploadpop'] == '') {
$_POST['form']['Status'] = 'Awaiting Payment';
}
else
{
$_POST['form']['Status'] = 'Payment received';
}

This does not seem to work correctly. If someone can please assist me with the correct code or a alternative solution I will be most grateful.

Thank you.
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!