The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
skipped ID's on PayPal enabled forms - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: skipped ID's on PayPal enabled forms (/showthread.php?tid=549) |
skipped ID's on PayPal enabled forms - gediweb - Mar 4th, 2010 My PayPal enabled form seems to be working fine, but when you look at the submissions, the ID's are skipping numbers. 2, 6, 7, 12... Is this because people are submitting the forms, but abandoning the PayPal cart? Is there any way to record the id when they finish paying and return to the site? RE: skipped ID's on PayPal enabled forms - martin_undefined - Mar 4th, 2010 (Mar 4th, 2010, 6:56 AM)gediweb Wrote: My PayPal enabled form seems to be working fine, but when you look at the submissions, the ID's are skipping numbers. 2, 6, 7, 12... Hi, Just went and looked at Paypal enabled form I've been testing. I'm seeing skips in the numbers where I've dropped out before completing the payment. Equally, when I've done two payments consecutively, the numbers are sequential as you would expect. So it does look like gaps in the submission numbers are aborted payments. Martin RE: skipped ID's on PayPal enabled forms - gediweb - Mar 4th, 2010 Since I am using the ID's as registration numbers for a show, it's a little weird if there are 30 registered people with badge numbers into the 80's No huge deal, but hope Ben can help us out on this! RE: skipped ID's on PayPal enabled forms - Ben - Mar 7th, 2010 Hi gediweb, Unfortunately, this is one of the side-effects of using the API. In order to make the whole process work, Form Tools needs to store all form submissions prior to submitting to PayPal, which means adding the submission to the database, which means incrementing the submission ID count. This is unavoidable, I'm afraid. But there are always workarounds. ![]() If you need an incrementing counter I'd look into adding a new field in your database called "registration_number" or something. The simplest solution is to just manually update that value for each successful applicant. Not great, but with a small number like 30 records, that's probably the way to go. If you had hundreds or thousands of registrations, you could look into using the Hooks Manager - or Submission Pre-Parser modules - to automatically increment that value for all successful registrations. But quite honestly, I wouldn't bother given the situation. Hope this helps a bit... - Ben |