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.

Create A Continuously Rotating Product Number

  1. I have been fighting with this for a while due to the fact that I suck with code.. I am looking for a way to create a field that increases by 1 number every time an order comes in. ie: IPP00001 then IPP00002 and so on. I would like to have "IPP" Always there at the beginning. I was directed to this discussion a while back but I simply confused myself: http://www.gravityhelp.com/forums/topic/send-confirmation-number#post-145386

    Also, I don't know where I am suppose to input a completed code that would do the trick.. Sorry, I'm a super noob with code.

    Posted 11 years ago on Friday March 8, 2013 | Permalink
  2. David Peralty

    If you don't feel comfortable with it, then your best option is to hire a developer. We have a job board on this forum, and recommend sites like jobs.wordpress.net to find able developers. It shouldn't take too long for an intermediate PHP developer to implement for you.

    If you are really keen on doing this yourself, you'll have to digest our documentation, and the learning curve is a bit steep.

    The steps are as follows:
    Create a field to store the value. It should be hidden on your form.
    On gform_after_submission - grab the Entry ID number and combine it with your prefix.
    http://www.gravityhelp.com/documentation/page/Gform_after_submission
    Update the field to store the combined value of the prefix and the Entry ID.

    This is a much more secure and easy way to do what you want. I hope it helps. All my best!

    Posted 11 years ago on Friday March 8, 2013 | Permalink
  3. David Peralty

    Oh and all customizations go in your theme's functions.php file.

    Posted 11 years ago on Friday March 8, 2013 | Permalink
  4. Thanks, I have posted my job up at "jobs.wordpress.net" look forward to the assistance!

    Posted 11 years ago on Saturday March 9, 2013 | Permalink

This topic has been resolved and has been closed to new replies.