What does “completed” really mean in regard to WooCommerce orders? No one knows. Admins and customers included.
For physical products, usually that’s when the order is shipped (unless you add a custom order status in between “processing” and “completed“). For digital stores, that’s when the downloads are delivered.
Now, wouldn’t it be cool if we could rename this “completed” order status label to something else? This would make everyone’s life easier. Well, thankfully with a few lines of code this is definitely possible… enjoy!
PHP Snippet: Rename “Completed” Order Status to “Shipped” @ WooCommerce Admin / My Account Page
Of course, together with the code below, also make sure to change the “Completed Order” email subject / content to make sure the label change is also matched.
/**
* @snippet Rename "completed" Order Status to "shipped"
* @how-to Get CustomizeWoo.com FREE
* @author Rodolfo Melogli
* @compatible WooCommerce 6
* @community https://businessbloomer.com/club/
*/
add_filter( 'wc_order_statuses', 'bbloomer_rename_completed_order_status' );
function bbloomer_rename_completed_order_status( $statuses ) {
$statuses['wc-completed'] = 'Shipped';
return $statuses;
}
add_filter( 'woocommerce_register_shop_order_post_statuses', 'bbloomer_rename_completed_order_status_counter' );
function bbloomer_rename_completed_order_status_counter( $statuses ) {
$statuses['wc-completed']['label_count'] = _n_noop( 'Shipped <span class="count">(%s)</span>', 'Shipped <span class="count">(%s)</span>', 'woocommerce' );
return $statuses;
}
Great thanks Rodolfo just what I was looking for.
Is it possible to rename the bulk action to “Mark as ‘new name'”
Great! I’m sure that is possible. Maybe with https://www.businessbloomer.com/translate-single-string-woocommerce-wordpress/ (untested)