• Resolved henmaker

    (@henmaker)


    I’m using Dokan and Dokan is multivendor plugin, which the order will have sub order. I want the revenue, product to exclude from sub order. In Dokan, there is filter to exclude the suborder from previous Woocommerce > Report:

    admin_order_reports_remove_parents( $query ) {
    $query[‘where’] .= ‘ AND posts.post_parent = 0’;
    return $query;
    }

    But it seems like i can’t apply this to Woocommerce-admin for Revenue and Report section.

    I tried both of this hook, doesn’t work either:
    woocommerce_analytics_revenue_query_args
    woocommerce_analytics_revenue_select_query

    Any suggestion i can exclude that from revenue and product report?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to filter the order with sub orders’ is closed to new replies.