PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

continuously cycling order #'s

  1. I have a client that is looking for the option of having a continuously cycling order number for corresponding orders. The other thing that they are hoping for to go along with this is the option to have a static option in front of the cycling numbers: ie. IPP014xxx The "IPP014" being static and the "xxx" being continually cycling up.

    Any help would be great as I'm new to gravity forms.
    Thanks

    Posted 6 years ago on Monday January 14, 2013 | Permalink
  2. When you say cycling up, do you mean sequential order numbers? And in addition you want a fixed portion at the beginning of the order number?

    The entry ID is always ascending, but it is sequential across all forms. It is guaranteed unique across all forms, but there will be gaps in the numbers if there is more than one form in use.

    Take a look at this user's post for one way to do it using gform_pre_render and gform_field_value_$parameter_name http://www.gravityhelp.com/forums/topic/gravity-form-incremental-id-generation#post-95412

    Posted 6 years ago on Monday January 14, 2013 | Permalink
  3. Hey Chris, Yes to both the questions at the top. I am looking for sequential and a fixed portion at the front. I checked out the link you have here, my only issue is i'm not to great with coding. I'm not 100% sure on where I am suppose to input that code that was posted.

    Thanks

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  4. That code will be added to your theme's functions.php file. You will have to customize it first.

    http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F#PHP

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  5. Thanks for the quick response Chris. I must be doing something wrong.. haha, I keep getting a "line 16 error" message every time I try to input that info into my "functions.php" file. I'm sorry for all these confusions.

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  6. If you post your complete functions.php at pastie.org or pastebin.com we can take a look at it for syntax errors. What is the exact error you are getting at line 16?

    Please paste all the code and we'll take a look at what is causing your error on line 16.

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  7. I get:
    Parse error: syntax error, unexpected '<' in /home/spchfe/public_html/waldosimagingltd.com/wp-content/themes/responsive/functions.php on line 16

    I just went into the functions.php file and closed the original php text in there with "</?>" then copy and pasted the code that the other member created that you directed me to.

    I put it over at pastie.org: http://pastie.org/5689391

    Thanks again

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  8. Remove lines 16 and 17 completely and try again. This is not the correct notation in PHP at all: </?>

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  9. Okay, I got it pasted in there with no error message, thanks. I'm just going to mess around with it now to try and understand how to make it work best for my needs.

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink
  10. OK, you're making progress. Let us know when you need more help.

    Posted 6 years ago on Tuesday January 15, 2013 | Permalink