• Hello and thank you for this great plugin!

    Is it possible to add a column that shows the VAT % of the order?

    I sell to different EU-countries, and it would be great to be able to see the different VAT rates for the different orders.

    Thank you!

    Best regards

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

    (@algolplus)

    hello

    please try >Setup Fields>Product Order Items>Item tax rate

    Thread Starter hans410947

    (@hans410947)

    Hello and thank you for your response!

    That worked, but some of the VAT rates are strange with many decimals. This might be because I using a multicurrency plugin that recalculate prices.

    Is it possible to pull the VAT rate % info from somewhere else, maybe from the cart or checkout?

    Thank you!

    Plugin Author algol.plus

    (@algolplus)

    please, add this code to seciton “Misc Settings”

    add_filter('woe_get_order_product_value_tax_rate', function ($value, $order, $item, $product,$item_meta) {
    $taxes = $item->get_taxes();
    if(isset($taxes['total'])) {
    $rates = array();
    foreach($taxes['total'] as $tax_rate_id =>$amount)
    $rates[] = WC_Tax::get_rate_percent( $tax_rate_id );
    $value = join("", $rates);
    }
    return $value;
    }, 10, 5);

    Thread Starter hans410947

    (@hans410947)

    Perfect, thank you so much!

    Best regards

    Plugin Author algol.plus

    (@algolplus)

    You’re welcome

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