• Resolved vasilibilly

    (@vasilibilly)


    Hello, I work with the Woocommerce Membership PlugIn and with PayPal as payment provider. If someone pays via PayPal, my order gets the status “Processing”. But the membership is not activated yet. For this to happen the status must be “Completed”. What is the best way to automate this? If someone has actually paid, then I want their membership to be activated automatically, so I don’t have to do anything manually.

    Thanks for the help ??

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    It sounds like this is working as expecting at the moment – The “Processing” part means that there’s something left for the shop manager to do, notably to ship the product to the customer (after which the shop manager can manually change the status to “Completed”).

    In the event that the membership you’re selling is for *access* purposes only AND no shipping is required, you’ll want to mark the product as being “virtual”. Virtual products mean there’s nothing to ship and the order status can be marked as “Completed” as soon as the payment is made successfully.

    Thread Starter vasilibilly

    (@vasilibilly)

    @riaanknoetze thank you very much… actually my products are virtual (i sell membership access) and i also configured my products as virtual but maybe i do something wrong. i will check this again. Thanks ??

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    IF all your product are virtual, then it might make sense to completely bypass the processing status and go straight to completed.

    Here’s a guide to doing that: https://docs.woocommerce.com/document/automatically-complete-orders/

    Note that will do it for all paid orders.

    If you need more granular control, I’d recommend looking at using a plugin like https://woocommerce.com/products/woocommerce-order-status-control/

    Hopefully that helps! Have a great one!

    Thread Starter vasilibilly

    (@vasilibilly)

    @slash1andy thanks a lot for the “automatically-complete-orders” guide.
    This is very helpful for me. And also the plugin ist very nice. Thanks again ??

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Great to hear that should work for you.

    Have a great one!

    Thread Starter vasilibilly

    (@vasilibilly)

    Hello @slash1andy

    once again.

    i try the code:

    /**
    * Auto Complete all WooCommerce orders.
    */
    add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
    function custom_woocommerce_auto_complete_order( $order_id ) {
    if ( ! $order_id ) {
    return;
    }

    $order = wc_get_order( $order_id );
    $order->update_status( ‘completed’ );
    }

    and have copy this in my snippets plugin but it doesnt works.

    After that i have put the code in my functions.php (as i have done a lot of times with other code) but then i get a wordpress crash / error.

    i am running woocommerce Version 4.6.0
    maybe i need another code or do you habe an idea what is going wrong?

    Thanks a lot man

    Greetings
    Vasilibilly

    @vasilibilly Hi, i am also using woocommerce membership.
    your problem seems to be my solution on my part.

    i want to activate the membership when the order status is “COMPLETED” but right now the membership is activated when the order status is on “PROCESSING”.

    can you please tell me what setup u did on your membership settings before?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Automatic activation of membership when someone has paid’ is closed to new replies.