• Is it possible to add three fields to get a custom total? For example,

    Order Subtotal Amount + Order Total Tax Amount + Order Shipping Amount

    Since I am using a woo wallet plugin the Order Total Amount is subtracting amounts paid with wallet as a negative or a fee. Then only using the credit card payment method as the Order Total. Just looking for a dependable way to get Order Totals directly from the report without having to add in excel.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    please, follow to https://docs.algolplus.com/algol_order_export/fields/

    add key custom_total

    use this code

    add_filter('woe_get_order_value_custom_total',function ($value, $order,$fieldname) {
    return $order->get_subtotal() + $order->get_total_tax() + $order->get_total_shipping();
    },10,3);

    Thread Starter mikethome

    (@mikethome)

    Thanks! Works great! Thank you for the speedy response!

    Any suggestions on connecting this plugin to a charting plugin or thoughts on creating those features?

    Plugin Author algol.plus

    (@algolplus)

    hello

    it has no sense, as there are some “store reports” plugins already , like “WooCommerce Ultimate Reports”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Total – sum of 3 fields’ is closed to new replies.