How to change the child order status during an Exchange request

Follow these steps to change the default status of the child order created when a customer submits an exchange request.
By default, the child order is created with the Processing status, but you can change it to On Hold, Pending Payment, or any custom WooCommerce order status.

1. Open your theme’s functions.php file

Navigate to your child theme’s directory and locate the functions.php file.
If it doesn’t exist, create one.

2. Insert the following code snippet

Copy and paste the code below into your functions.php file:

/*
* Change the child exchange order status
*/

add_filter( 'rwc_exchange_child_order_status', 'change_exchange_child_order_status', 10, 3 );

function change_exchange_child_order_status( $status, $exchange_data, $order ) {
    // Example: set child order status to "On Hold" instead of "Processing"
    return 'on-hold';
}

3. Save the file

Save the changes to your functions.php file.

By following these steps, you’ve successfully changed the default status applied to child orders created during an exchange request.
This allows merchants to hold or control replacement order fulfillment based on their workflow or warehouse needs.

$129.00

Billed annually

Buy Now