• Resolved emoncht

    (@emoncht)


    I want to automatically top-up the wallet on custom order status. By default Terawallet automatically add money to the wallet for the “Processing and completed” order status. I want to add money only on Complete status, not for Processing status. How can I achieve it?

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

    (@subratamal)

    @emoncht Please use the attached code in the active theme functions.php file.

    add_filter( 'wallet_credit_purchase_order_status', 'wallet_credit_purchase_order_status_callback', 10, 1 );
    if ( ! function_exists( 'wallet_credit_purchase_order_status_callback' ) ) {
    	function wallet_credit_purchase_order_status_callback( $status ) {
    		$status = array( 'completed' );
    		return $status;
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Add wallet balance on status’ is closed to new replies.