Add a new column to report download

Posted by: Wayne Philips

19th August 2024, 12:12 pm

Wayne Philips

@go6

19 Aug 2024
12:12 pm

We want to show the company name (WooCommerce) or better yet the TEAM name for members (based on Woo memberships for teams https://woocommerce.com/products/teams-woocommerce-memberships/) in the report downloads.

This is so the client can see which companies are downloading the most content rather than which individual...

How easy is it to add a new column to the download reports  CV?

Last modified: 20th August 2024, 12:31 pm by Peter Wilkinson

  • Forum Moderator
    Peter Wilkinson

    @wpenhanced

    20 Aug 2024
    1:55 pm

    Hi Wayne

    We have added code that will default to the WooCommerce Billing Company name if it is empty in the stats

    It will be on the next update which is probably next week

    Can you wait for this? If not, can you send me admin logins so I can upload our code for the fix?

    Thansk
    Pete

  • Forum Moderator
    Peter Wilkinson

    @wpenhanced

    20 Aug 2024
    1:56 pm

    Ah I forgot this is on a forum 😀 Please send admin logins on a support ticket so it is private

    Thanks

  • Wayne Philips

    @go6

    21 Aug 2024
    10:05 am

    Hi Peter, Is there any way we can hook in to that to pull in the WooComerce Team name?

  • Forum Moderator
    Peter Wilkinson

    @wpenhanced

    23 Aug 2024
    4:59 pm

    Not sure what this is but we do allow custom meta with this filter (header is the field)

    apply_filters('somdn_stats_get_custom_field_' . $header, 'Custom', $download, $header);