Order status still ‘processing’ after payment complete

[ad_1]

Hi @ninjaneen

I can’t see anything in the plugin settings to allow for this.

That’s because WooCommerce manages the order’s status when the payment is complete. WooCommerce has their own internal logic for when an order is set to processing or completed.

You can use the WooCommerce filter woocommerce_payment_complete_order_status to customize the order status.

Example:

add_filter('woocommerce_payment_complete_order_status', function($status, $order_id){
    $status="completed";
    return $status;
}, 10, 2);

Kind Regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer