• 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: How to reset counter

How to reset counter 12 years 7 months ago #18821

Hi

I'm using a counter for customers that submit my form and this ID shows on their invoice.

How can I reset the counter back to zero?
The administrator has disabled public write access.

Re: How to reset counter 12 years 7 months ago #18826

  • thithi2
  • thithi2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
Which form do you use to your counter?
Is it the Support Ticket?
The administrator has disabled public write access.

Re: How to reset counter 12 years 7 months ago #18833

I use the hiden field.

The counter code is:

//<code>
$db=JFactory::getDBO();
$db->setQuery("SELECT COUNT(`SubmissionId`) cnt FROM #__rsform_submissions WHERE FormId=15");
$db->query();
$result=$db->loadResult();
return intval($result)+1;
//</code>
Last Edit: 12 years 7 months ago by roman.strmsek.
The administrator has disabled public write access.

Re: How to reset counter 12 years 7 months ago #18838

I found it!

Yust go to the manage subscription and delete all subscriptions.
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!