• Good morning, I would like to add as the last row of a column the totals of that column, is there any way to do this?

    Is there a way also to divide the payment methods into columns?
    In summary I would like to have a column for each payment method (Cards, Paypal, transfer, etc.) and at the end of them the total. Can this be done, thank you very much in advance.

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

    (@algolplus)

    Hello

    Please open seciton “Setup Fields” , scroll to necessary field and click on icon “Σ” .

    Separate column for payment method – will require some programming.
    Follow to https://docs.algolplus.com/algol_order_export/fields/
    Add key paypal_amount (set Format = Money)
    Use this code to fill column
    add_filter('woe_get_order_value_paypal_amount',function( $value,$order, $fieldname ) {
    if($order->get_payment_method() == "paypal")
    $value = $order->get_total();
    return $value;
    }, 10, 3 );


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.