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.

Orders linked to user

  1. sacove
    Member

    Hello, i would like to be able to accept orders and subscriptions from logged in users (i can restrict access to the form myself) and have the order linked in the database so i can programmatically check what a certain user has ordered/ has an active subscription to. For example so i can restrict access to support docs for item X to users who have purchased it.
    sudo code:

    If user has purchased (x)
    show docs
    else
    Show "you gotta buy it first"
    //or
    If user has active subscription for (x)
    show docs
    else if user has expired subscription for (x)
    Show "you subscription has expired, please renew"
    else
    Show "you gotta purchase a subscription to x first"

    I am capable of writing the above in valid php providing gravity forms can be made to save the data in a table somewhere.
    Is this attainable and relatively simple with gravity forms and the paypal addon?

    Posted 12 years ago on Saturday December 1, 2012 | Permalink
  2. If you can write the PHP, you won't have any problem. All the leads are stored in the WordPress database in Gravity Forms-specific tables. You can query to get the leads by user.

    Posted 12 years ago on Saturday December 1, 2012 | Permalink
  3. sacove
    Member

    Thanks a lot for replying,
    Yes i can write php.
    To be more specific, does the paypal addon handle subscriptions in such a way that i can query for active and expired subscriptions by user?

    Posted 12 years ago on Saturday December 1, 2012 | Permalink
  4. Yes. All the data is stored in the database, including the subscription status. You can query for any of that information.

    Posted 12 years ago on Sunday December 2, 2012 | Permalink