Home WooCommerce Tutorials Standard Post

Standard Post

Adding a 'Shipping in Progress' Status to WooCommerce Orders

We know that we can build our own cross-border e-commerce independent website through WooCommerce. The default WooCommerce order statuses are only Completed, Processing, On hold, and Cancelled. When we handle cross-border orders, the logistics time is relatively long...

Updated on December 4, 2022 About 3 minutes reading

We know that we can build our own cross-border e-commerce independent website through WooCommerce. The default WooCommerce order statuses only include Completed, Processing, On hold, and Cancelled. When dealing with cross-border orders, the logistics time can be quite long. If we display the status as Processing normally, it might cause confusion for users. Adding a new 'Shipping In Progress' status would be more user-friendly.

To add extra custom statuses to WooCommerce orders, you can use a plugin or code.

Adding Custom Order Status Using a Plugin

Custom Order Status for WooCommerce is a free plugin for adding order statuses to WooCommerce, which can be installed for free from the WordPress Admin Dashboard.

Plugin URL

Using this plugin, you can also add icons and colors to custom statuses.

Custom Order Status for WooCommerce

Adding Custom Order Status Using Code

Using code allows you to avoid installing an extra plugin. However, beginners modifying code carelessly might cause website errors, so please use this method with caution.

function naiba_wc_register_post_statuses() {
	register_post_status( 'wc-shipping-progress', array(
	'label' => _x( 'Shipping In Progress', 'WooCommerce Order status', 'text_domain' ),
	'public' => true,
	'exclude_from_search' => false,
	'show_in_admin_all_list' => true,
	'show_in_admin_status_list' => true,
	'label_count' => _n_noop( 'Approved (%s)', 'Approved (%s)', 'text_domain' )
	) );
	}
	add_filter( 'init', 'naiba_wc_register_post_statuses' );
	function naiba_wc_add_order_statuses( $order_statuses ) {
		$order_statuses['wc-shipping-progress'] = _x( 'Shipping In Progress', 'WooCommerce Order status', 'text_domain' );
		return $order_statuses;
		}
add_filter( 'wc_order_statuses', 'naiba_wc_add_order_statuses' );

Add the above code to your Theme's functions file. After saving, you will see the 'Shipping In Progress' option in the order list status.

2.5/5 - (16 votes)
Previous WordPress Enterprise Theme Suitable for Beginners: QiHang Continue reading content around the same timeline. Next How to modify WooCommerce product sorting View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: