Hi,
right now i am afraid the WPAdverts does not have subscriptions feature.
We are planning to release in near future a memberships/subscriptions extension which will integrate with the WooCommerce Subscriptions but right now i cannot really tell when it will be ready and how will it work exactly.
Okay, thanks for the reply.
Do you think it would be possible by using a membership plugin and restricting the adding/listing forms by membership level? Just trying to think outside the box.
Hi,
yes it should be possible if the Membership plugin will allow you to make the page with [adverts_add] shortcode visible only to users with a valid membership.
If the membership plugin will allow you to add some capabilities to users while they have the membership active (for example a custom capability named “active-memb”), then you can block access to the [adverts_add] by using it as
[adverts_add requires="active-memb"]
Also, by installing a Pricing Per Capability snippet https://github.com/simpliko/wpadverts-snippets/blob/master/pricing-per-capability/pricing-per-capability.php you could make some pricings visible only to users with a selected membership.
For example if you have silver and gold memberships then the silver membership could make a Listing Type visible for 30 days available in [adverts_add] and the gold membership could make a featured Listing Type visible for 45 days available.
Hey Greg,
I just wanted to follow up and let you know I figured out a way to make this work. Essentially if you use Woocommerce Subscriptions & Subscribe All the Things (free extension for Woocommerce Subscriptions, available on github) you can modify a file in the Subscribe All the Things to recognize advert_single as a product.
For Subscribe all the things, you need to modify woocommerce-subscribe-all-the-things.php on line 308:
return apply_filters( 'wcsatt_supported_product_types', array( 'simple', 'variable', 'variation', 'mix-and-match', 'bundle', 'composite' ) );
Change to:
return apply_filters( 'wcsatt_supported_product_types', array( 'simple', 'variable', 'variation', 'mix-and-match', 'bundle', 'composite', 'advert_single' ) );
-
This reply was modified 7 years, 1 month ago by
368durham.
Hi,
thanks for the feedback i think this will be very helpful when working on the WPAdverts subscriptions and memberships :).
One note, you do not need to modify the original source code you can use the wcsatt_supported_product_types filter to add ‘advert_single’ to the list, like this
add_filter( "wcsatt_supported_product_types", function( $args ) {
$args[] = 'advert_single';
return $args;
} );
Yeah, of course.
It should also be mentioned the Subscribe All the Things plugin I was using is no longer actively developed. They have switched over to being sold by Woocommerce and called All Products for WooCommerce Subscriptions. I haven’t set it up to use the new plugin yet, I just wanted to confirm if it would work before purchasing it.
Although I doubt it will make a difference, I’ll let you know if I run into any problems.