Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @pipoulito

    In response to your inquiry about excluding child orders in stats and restricting the stats to only parent orders, I would like to inform you that currently, WooCommerce does not provide a direct option to exclude child orders from the stats in the core plugin.

    However, you can achieve this with a bit of custom coding.

    Please note that we can’t provide support for code customization as per our support policy. Still, if you need customization, we do our best to offer advice and direct you to appropriate resources. Based on the feedback we get from our customers, we highly recommend contacting one of the services on our Customization page. On the other hand, I’ll keep this thread open, allowing other members of the community to contribute their expertise.

    Cheers,

    Thread Starter pipoulito

    (@pipoulito)

    Hellot

    thanks a lot , could you just give me some indications about the method to use please ? or links ?

    thnaks a lot

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @pipoulito

    As my colleague Darla mentioned, this is not a direct feature currently available in WooCommerce. However, this can probably be achieved through some custom coding.

    While we don’t offer direct support for code customizations, I can provide you with a general direction. The woocommerce_reports_get_order_report_data filter could be useful in this case. This filter allows you to modify the SQL query that is used to retrieve the order data for the reports. You could potentially use this to exclude child orders from the results.

    If you have any further questions on development or custom coding, don’t hesitate to reach out to some of our great resources available for support. Our WooCommerce community is brimming with skilled open-source developers who are active on the following channels:

    I hope this information is helpful. If you have any other questions, please feel free to ask.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude child orders in stats’ is closed to new replies.