We’re looking to build a “Business Directory” using Gravity Forms - but - are not sure the best way go about it from a billing and management perspective.
Ideally the way the system would work is a user would sign up for an account and use Gravity Forms to submit and manage their business listing (I plan to use GravityView for this!) but we would also like it so when the users payment lapses or they cancel their account any entries they had submitted would be removed from the front end listing.
Does anyone have guidance or tips on how to handle this? I was thinking of using WooCommerce Subscriptions or Gravity Plus to handle the subscriptions / payment management I am just not sure how to connect it with the automatic listing removal.
I think you can use the Post Expirator plugin for that, to actually handle the expiration.
The trick will be to get the expiration date associated with the post when it is created (if it was a one-year directory listing or something) or, to actually expire it when some action happens (subscription payment fails or account is cancelled.) Whatever plugin you are using the manage the subscription will need to have a hook which runs after the payment fails, or their membership is voided or cancelled. Once you decide on a plugin, you can check for that hook which runs after the subscription ends, then you can expire the post in whatever method the Post Expirator plugin uses.
It can certainly be done but will require tying some systems together with PHP and some built in hooks. None of that actually happens in Gravity Forms (other than the initial post creation.)
Hi Elizabeth,
You can use GravityView’s Advanced Filters (included in the Core + Extensions license) to do this—you will set up a filter on the payment status to check whether the subscription is active. If it isn’t active, it will be hidden from the View—no extra plugins needed!
Oh, yes, I’m using GravityView – because it’s the best thing ever.
A couple of years ago, I built some business directories using GravityView for one of my clients.
Now my client wants to add a couple of fairly obvious functions that we didn’t get to before: (1) automated emails to him and to the directory listing owners when the listings are about to expire; (2) a renewal form to pay for another year (he doesn’t want to have automatic subscription payments).
So currently I’m working on doing that by integrating the Gravity Forms directory listing submission form with Wishlist Member.Yesterday I added Gravity Wishlist to hook that up.
I think I’ve got most of the details sorted out yesterday, but if not, would it be okay if I asked you a couple of questions?
@liztheresa and @katzwebservices, I’m trying to do the same thing, but I’m having difficulties, can you tell me a bit more about how to do this?
At my end, people:
buy a subscription (Woo Subscription)
are redirected to a Gravity Form to fill out
once approved, their entry shows up in the directory (GravityView).
In the GravityView Advanced filters, I do see the option to select payment status = active. But how is that connected to the purchase that was made with Woo Subscriptions? How does it know who’s subscription status to check? Do I have to use the Gravity Forms Product Add-ons instead of a two-step process (Purchase subscription + redirection for GravityForm)?
If b), it would simply be Gravity Form + Gravity Form Payment Addon (Stripe or other) + Gravity View without ever going through WooCommerce? If so, I like the simplicity of this, but I’m wondering if it is a good idea since all the other products will be in WooCommerce. Also, if I want people to edit their entry, I would need to go with Gravity Form Elite so they can Register, correct? And if they already have an account because they made another purchase before, could they still login during the purchase process ?
Could it also work with WooCommerce + WooCommerce Gravity Forms Product Add-on + Stripe for WooCommerce + Gravity View? Or will the payment_status not work in that case? If this option does work, I’m guessing registration would be managed by WooCommerce and not Gravity Forms (Elite)? And would I still need Subscriptions?
Thanks so much for taking the time to answer all my questions.
Does that mean that if someone buys a product using WooCommerce + WooCommerce Gravity Forms Product Add-on, GravityView won’t be able to connect to the entry made with the Gravity Forms Product Addon-on to present it in a directory?
I tried this option, but I don’t see End date in the Advanced field options. Am I missing a step?