WooCommerce Order Status

Hi, I created a new order status in WooCommerce via a snipped.

The custom status is not visible in the module “Update Order”.

How can I change the status to the custom status?

Hey @Max_Bartsch, nice to meet you. :slight_smile:

I’m happy to take a look at this and see if I can help. Can you share some screenshots and a little more details on what you want to do in your scenario?

2 Likes

Dear @Jock_Learns ,

thank you very much!

1. I added a new customs order status to WooCommerce via a snippet

function register_shipped_order_status() {
   register_post_status( 'wc-shipped', array(
       'label'                     => 'Shipped',
       'public'                    => true,
       'show_in_admin_status_list' => true,
       'show_in_admin_all_list'    => true,
       'exclude_from_search'       => false,
       'label_count'               => _n_noop( 'Shipped <span class="count">(%s)</span>', 'Shipped <span class="count">(%s)</span>' )
   ) );
}
add_action( 'init', 'register_shipped_order_status' );

function add_shipped_to_order_statuses( $order_statuses ) {
   $new_order_statuses = array();
   foreach ( $order_statuses as $key => $status ) {
       $new_order_statuses[ $key ] = $status;
       if ( 'wc-processing' === $key ) {
           $new_order_statuses['wc-shipped'] = 'Shipped';
       }
   }
   return $new_order_statuses;
}
add_filter( 'wc_order_statuses', 'add_shipped_to_order_statuses' );

2. I want to update the WooCommerce Order to that Status
→ as you can see in the screenshot, the customs status is not shown in the make.com module

How can I update the order status to a custom order status?
Do you have any idea?

Thanks @Max_Bartsch :slight_smile:

Have you already tried refreshing the form of the module? Every module can be refreshed to re-determine the data structure of the connected account.

If that won’t help, you can also try establishing a new connection in the module.
Let me know how it goes :slight_smile:

2 Likes