• Resolved amirbani

    (@amirbani)


    Hello
    I want when the user recharges his wallet, the user’s order does not go to the in progress status and is completed directly.
    How should I do this?

Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @amirbani Please use the attached code in theme functions.php file for this.

    add_filter( 'woocommerce_payment_complete_order_status', 'woocommerce_payment_complete_order_status_callback', 10, 1 );
    if ( ! function_exists( 'woocommerce_payment_complete_order_status_callback' ) ) {
    	function woocommerce_payment_complete_order_status_callback( $status ) {
    		return 'completed';
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘In progress to completed’ is closed to new replies.