• Hi all,

    Hope you are doing well today. Is there any way to display vendor/store name as a column in the storemanager > Orders page? I will really appreciate if you could help me with that.

    Thanks
    Danny

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Sorry, it’s not possible to add new column under orders page.

    Between, store name column already exists under WooCommerce orders list page. https://ibb.co/DDdfHt8

    Thread Starter ironf2019

    (@ironf2019)

    But when I export the order list, it doesn’t include the store column. Can you please advise on how to do that? It will also be nice to have a master export where I can understand how much each vendor is getting paid and their commissions against the total sales.

    Thanks
    D.

    Thread Starter ironf2019

    (@ironf2019)

    I was talking about adding Store name in the order list page in the store manager just in case I didn’t explain it well.

    Much appreciated.

    Thread Starter ironf2019

    (@ironf2019)

    Are you able to help me please?

    Thread Starter ironf2019

    (@ironf2019)

    I’m looking for something like this

    add_filter( 'woocommerce_product_export_column_names', 'add_export_column' );
    add_filter( 'woocommerce_product_export_product_default_columns', 'add_export_column' );
    function add_export_column( $columns ) {
    	$columns['store_id'] = 'Store ID';
    	$columns['store_name'] = 'Store Name';
    	return $columns;
    }
    function add_export_data_store_id( $value, $product ) {
    	$value = wcfm_get_vendor_id_by_post( $product->get_id() );
    	return $value;
    }
    add_filter( 'woocommerce_product_export_product_column_store_id', 'add_export_data_store_id', 10, 2 );
    function add_export_data_store_name( $value, $product ) {
    	$value = wcfm_get_vendor_store_name_by_post( $product->get_id() );
    	return $value;
    }
    add_filter( 'woocommerce_product_export_product_column_store_name', 'add_export_data_store_name', 10, 2 );
    

    This works fine when I export products. Can we adapt it to work for orders?

    Thanks
    D.

    Thread Starter ironf2019

    (@ironf2019)

    CAn you please assist me.

    Much appreciated.
    Danny

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display column Vendor/Shop name in order page’ is closed to new replies.