• Resolved jennsuh

    (@jennsuh)


    Hi there!

    Is there a way of seing an order report and filter it by groups?

    Thnx a lot!

    Great plugin by the way!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WebWizards

    (@webwizardsdev)

    Hi there!

    This is not available yet, but we’ve been actually working on adding this for the next update.

    This is what we have so far: https://prnt.sc/7Af4pAQljy1z

    Reports would include:

    • Gross Sales
    • Net Sales
    • Number of Orders Placed
    • Number of Items Sold
    • Filter by B2B Group or by individual B2B Customer
    • Export as CSV

    If you have any feedback or suggestions, we’d love to hear it!

    Thread Starter jennsuh

    (@jennsuh)

    Hello and thank you for the information.

    Are this available in the free plugin or just in the premium plugin?

    I have the free plugin and I dont have any of this options in my dashboard

    Plugin Author WebWizards

    (@webwizardsdev)

    Hi,

    This feature is a work-in-progress, it’s not available anywhere yet (neither in the pro or free plugin yet).

    Once it’s ready, I believe we will add it to the free plugin as well, we’ll be releasing a major update in the next few weeks.

    Thread Starter jennsuh

    (@jennsuh)

    Hello!

    Now I understand!

    Thnx for the info.

    By any chance, do you guys have a filter or hook to filter orders that have a discount applied with b2b king plugin?

    For the time being, We are trying to retrieve this info as a way of filtering orders by group. We figured that if the order has a discount from b2b king, its because it belongs to a group. But we are not being able to find a plugin or filter to do so with. They only work with Woocommerce Coupons and not with general discounts.

    thanks in advanced,

    Plugin Author WebWizards

    (@webwizardsdev)

    Are you trying to differentiate between B2C and B2B orders?

    You could add this PHP code snippet to your site (to functions.php or to any snippets plugin):

    add_filter( 'manage_edit-shop_order_columns', 'b2bking_add_new_order_admin_list_column_core', 10, 1 );
    add_action( 'manage_shop_order_posts_custom_column', 'b2bking_add_new_order_admin_list_column_content_core', 10, 1 );
    function b2bking_add_new_order_admin_list_column_core( $columns ) {
        $columns['b2bking_check_is_b2b_order'] = '<p style="text-align:right;">B2B</p>';
        return $columns;
    }
    function b2bking_add_new_order_admin_list_column_content_core( $column ) {
      
        global $woocommerce, $post;
       
        if ( 'b2bking_check_is_b2b_order' === $column ) {
           
            $order = wc_get_order( $post->ID );
            $customer_id = $order->get_customer_id();
            $customer_b2b = get_user_meta($customer_id,'b2bking_b2buser', true);
            if ($customer_b2b === 'yes'){
                echo '<p style="text-align:right;"><span class="dashicons dashicons-yes-alt"></span></p>';
            }
        }   
    }

    It would add a B2B column to orders like this: https://prnt.sc/HV2Oi2_Bf7XR

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sales report filter by group’ is closed to new replies.