Display the Order Products shops, within the Super Admin Orders ( all ) interface
The WooCommerce Global Cart includes the global Orders interface where orders across all shops in the network are listed in a single place. The interface is similar to the default WooCommerce order and includes all default functions to maintain Process, Complete, View etc.
To make it easy to figure out through the Orders interface, what each of the orders contain, an additional column can be included programmatically to show all Shop names that the included products belong to. This is useful when using the Single Site Check-out type:
add_filter('wogc/admin/manage_shop_order_columns', 'custom_wogc_admin_manage_shop_order_columns'); function custom_wogc_admin_manage_shop_order_columns( $columns ) { $columns['origin_blogs'] = __( 'Shops', 'woocommerce' ); return $columns; } add_action('wogc/admin/manage_shop_order_column_data', 'custom_wogc_admin_manage_shop_order_column_data', 10, 2); function custom_wogc_admin_manage_shop_order_column_data( $post, $column_name ) { if ( $column_name != 'origin_blogs') return; $order = wc_get_order( $post->ID ); foreach( $order->get_items() as $key => $order_item ) { $site_data = get_blog_details( $order_item->get_meta('blog_id') ); printf( '<b>%s</b><br />', esc_html( $site_data->blogname ) ); } }