🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

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 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.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

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