The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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...

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?

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. Smile

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