The WooCommerce “ORDER AGAIN” button allows customers to quickly reorder items they have purchased in the past, which can be a valuable tool for both customers and store owners, offering convenience and encouraging repeat purchases.
The “ORDER AGAIN” button shows on the Thank You page after completing an order and on the individual View Order page within the customer’s My Account page, but only for completed orders.
What if we want to enable this feature for processing orders as well? Or maybe for cancelled ones? Well, let’s see how they do it!
PHP Snippet: Enable “Order Again” For More Statuses @ My Account
/**
* @snippet Order Again For Additional Order Statuses
* @tutorial Get CustomizeWoo.com FREE
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 8
* @community Join https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_valid_order_statuses_for_order_again', 'bbloomer_order_again_more_statuses' );
function bbloomer_order_again_more_statuses() {
return array( 'completed', 'cancelled' ); // basically add as many statuses as you wish to the array
}
its working great shoptimizer theme
Nice!
I quite like this idea, thank you. Do you know if it could be added to the back-end order summary to enable repeat manual orders to be created without typing in all of a guest customer’s details?
Gareth, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!
It is not working on Flatsome Theme.
Can you see the “Order Again” button for completed orders?