Support » Plugin: WPAdverts - Classifieds Plugin » Subscription for posting

  • Resolved 368durham

    (@368durham)


    Hey!

    Great plugin so far, it’s been great working with it.

    Our website has 3 seperate packages for posting, Free, One Paid and a larger Paid plan each with different features. Currently the paid plans are one-time fees only.

    The payments are being handled by Woocommerce and Stripe.

    Is there anyway the paid listings could be handled as subscriptions? If possible with Woocommerce subscriptions? I’m considered having it handled as a subscription that creates a seperate user role and restrict the forms to that user role but I’m not sure if this is the best way to go about it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter 368durham

    (@368durham)

    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.

    Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter 368durham

    (@368durham)

    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 2 years, 5 months ago by 368durham.
    Plugin Author Greg Winiarski

    (@gwin)

    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;
    } );
    
    Thread Starter 368durham

    (@368durham)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Subscription for posting’ is closed to new replies.