Support » Plugin: Advanced Order Export For WooCommerce » Combination / sum of fields

  • Resolved rickybrce

    (@rickybrce)


    Hello,

    I using a free version of your plugin. Is it possible (maybe in pro version) to sum 2 fields in export? For example shipping tax with custom product tax?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    thank you for your response. I want to calculate on orders. I try the function and is working on some fields, but not on every field. I want to do a calculation on “Order Shipping Tax Amount(order_shipping_tax)” and custom tax “TAX_NO-MVA 25%-1(plain_orders_TAX_NO-MVA 25%-1)”. But giving an error.
    For “Order Shipping Tax Amount(order_shipping_tax)” – get_shipping_tax() is working, but what function to use for getting value from custom 25% tax class?
    Is it possible to do a sum calculation on this 2 fields?

    Thank you

    • This reply was modified 10 months, 3 weeks ago by rickybrce.
    • This reply was modified 10 months, 3 weeks ago by rickybrce.
    Plugin Author algol.plus

    (@algolplus)

    Hi

    so you’ve added product field ?

    $item->get_taxes() or $item->get_tax_total()

    thanks, Alex

    Hi,

    I will try to explain. I have two different custom tax rates. 15% and 25%. This 25% is also added to the shipping cost.
    When exporting fields 25% is separated from shipping 25%. So, I need to sum 25% from items with 25% from shipping to get total 25% tax on order, or directly export total of 25%.
    Any help is appreciate.

    Thanks.

    Plugin Author algol.plus

    (@algolplus)

    Hi

    Please, visit https://algolplus.com/plugins/code-samples/#add_fields
    and try code “add all taxes as columns”.

    thanks, Alex

    • This reply was modified 10 months, 3 weeks ago by algol.plus.

    Hi,

    ok, thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Combination / sum of fields’ is closed to new replies.