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.

Building an Order Status Page

  1. Hi I am trying to build a page that lets users enter their transaction number (generated upon completed transaction in an order form) and see the status of their order. I've looked through the forums but haven't been able to find exactly what I'm looking for. I don't want the users to have to create a login, I just want it to be really simple for them. Any ideas on how to do this?

    Posted 11 years ago on Sunday March 31, 2013 | Permalink
  2. When they enter their transaction number, what will you show them? How are you generating the transaction number now?

    It sounds like you need a simple form to accept one input: the transaction number. You will accept that number, and query the entries for (some form) and pull out (some fields) to show the visitor. You can use the gform_confirmation filter to query the entries for a specific form, then return that data, or return an error if there is no match. Here is the documentation for the gform_confirmation filter http://www.gravityhelp.com/documentation/page/Gform_confirmation

    To pull out information from previous form entries, you can use the function RGFormsModel::get_leads. That can return all leads for one form, and you can see if there is a match on your one field, then display some of the other fields from the matching record.

    The RGFormsModel::get_leads function is detailed in the plugin file forms_model.php. You can check the usage of the function there. The code you write will be placed in your theme's functions.php file.

    Posted 11 years ago on Monday April 1, 2013 | Permalink