BuddyDev

Search

[Resolved] Pay Per Post by selling access with WooCommerce

  • Keymaster
    (BuddyDev Team)
    Posts: 24583
    Brajesh Singh on #46191

    Hi Nancy,
    Thank you for your interest in the plugin.
    Since you have a membership with us, you don’t need to purchase this plugin.

    Please visit Your account->Membership->Plugins and you will find Pay Per Post under BuddyBlog Pro.

    Please download and install it. Here is a link to the documentation(it’s a work in progress).

    We will be making a public announcement next week but the plugin is available in all accounts having access to BuddyBlog Pro plugin.

    https://buddydev.com/docs/buddyblog-pay-per-post/getting-started-with-buddyblog-pay-per-post/

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Nancy Ketola on #46192

    Thank you so much for the quick reply! If I am understanding correctly this allows users to purchase access to read a users posts?

    I was looking for a solution that paid bloggers for every post they created.

    Thank you again!

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46193

    Hello Brajesh,

    I just tested the plugin 8 times now but users aren’t redirected to cart or checkout even when product pricing has been selected. They aren’t redirected to cart or checkout even if the option (Enable Force Purchase) is enabled or disabled.

    All posts are being submitted freely

    Just in case i have this code enabled

    /*Auto Complete Paid WooCommerce Orders*/
    function wc_autocomplete_processing_orders() {
       return 'completed';
    }
    add_filter( 'woocommerce_payment_complete_order_status', 'wc_autocomplete_processing_orders', 9999 );

    Thanks

    • This reply was modified 2 years, 2 months ago by Tosin.
  • Keymaster
    (BuddyDev Team)
    Posts: 24583
    Brajesh Singh on #46199

    Hi Nancy,
    The plugin allows site admins to monetise the blog posting functionality. Users can purchase the ability to have their post featured/published for certain duration.

    You will need some kind of membership plugin that allows purchsing access to view content.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24583
    Brajesh Singh on #46200

    Hi Tosin,
    I am sorry for the experience.

    @ravisharma
    will be assisting you with it today.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Nancy Ketola on #46214
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #46215

    Hello Tosin,

    Please update the plugin to ‘1.0.1’ and Give it a try.

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 196
    Niculae Constantinescu on #46227

    Hi,
    It seems to be working very well.
    However I would need to remove all old items in cart when a user purchase an article product.
    I have this code in the function.php Child Theme, but it does not have effect on it.
    Is there any other solution for achieving this?

    // remove old items in cart when new items added woocommerce
    add_filter(‘woocommerce_add_to_cart_validation’, ‘remove_cart_item_before_add_to_cart’, 1, 3);
    function remove_cart_item_before_add_to_cart($passed, $product_id, $quantity) {
    if (!WC()->cart->is_empty()) {
    WC()->cart->empty_cart();
    }

    Thank you
    Cristi

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46230

    Hello Niculae,

    I solved this problem using the code to empty cart on (create-new-post) page load.

    
     /* Empty woocommerce cart on a specific page to avoid conflict with buddyblog pay per post */
    add_action( 'template_redirect', 'woocommerce_clear_post_cart_url' );
    function woocommerce_clear_post_cart_url() {
        global $post;
        $slug = $post->post_name;
        if($slug == 'create-new-post') {
            global $woocommerce;
            $woocommerce->cart->empty_cart();
        }
    } 
    

    @brajesh I’ll like to ask regarding the code above. what effect will the code have when multiple users load the (create-new-post) page. I hope it would not affect site performance, if it will, can the code be refined for better optimisation.

    Maybe adding a condition not to run the code when user cart is empty

    Thanks

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46231
    This reply has been marked as private.

The topic ‘ [Resolved] Pay Per Post by selling access with WooCommerce’ is closed to new replies.

This topic is: resolved