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 6 years, 6 months ago by
rickybrce.
-
This reply was modified 6 years, 6 months ago by
rickybrce.
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.
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 6 years, 6 months ago by
algol.plus.