• 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: Calculating number of tickets sold

Calculating number of tickets sold 8 years 11 months ago #35107

I have made a form and it works properly. You can find it at this link.
They can choose if they want to order 1 tickets or more upto 20 tickets.
See:


I would like a counter on the site to know how many tickets are sold. In the backend I can see all submissions and I can see for each row the amount of money they've payed (10 EUR per ticket, no other prices/no discount).

Is there a possibilty to write a script of use a plugin that shows the sum of this column? So the total amount of money they have payed? And then divide it to 10 to know the numbers of tickets sold? I would like to put this on the website.

Another solution can be that I will use a script that will stop a user to order more tickets if a maximum is reached.

I can imagine RSEvents has more possibilities than RSFormPRO but that's not yet an option. We might use that software later when some new features are available.

Thanks in advance!
The administrator has disabled public write access.

Calculating number of tickets sold 8 years 9 months ago #35446

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

You could try counting the number of submissions made with each option, then restrict the submission process after your desired limit per option is reached. Although not a copy paste solution a good starting point can be found here:

www.rsjoomla.com/support/documentation/r...sions-to-a-form.html

Since you will need to check the number of submissions based on the value, the table you should perform the query for is #__rsform_submission_values and not #__rsform_submissions.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!