• Resolved remiojr

    (@remiojr)


    Hi,

    I need to export my orders, everything works fine except the tax rate exported.
    The right tax rate should be 5.5 and in the export file I have :
    – 5.46
    – 5.55
    – 5.51
    – etc.

    The taxe rate is well configured in woocommerce settings.

    Thanks for your help

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

    (@algolplus)

    hi

    We have to calculate this field.
    please, open section “Misc Settings” (inside profile/job) and add this PHP code.
    thanks, Alex

    add_filter('woe_get_order_product_value_tax_rate', function ($value, $order, $item, $product,$item_meta) {
    return round($value,1);
    }, 10, 5);
    Thread Starter remiojr

    (@remiojr)

    Thank you for you quick reply !

    Actually it doesn’t work perfectly.

    I now have :
    – 5.5
    – 5.6
    And I think I could also have 5.4

    Plugin Author algol.plus

    (@algolplus)

    I’m sorry, you have to tweak code a bit , to something like

    add_filter('woe_get_order_product_value_tax_rate', function ($value, $order, $item, $product,$item_meta) {
      $value = round($value,1);
      if($value == 5.4 OR $value == 5.6) $value = 5.5;
      return $value;
    }, 10, 5);
    Thread Starter remiojr

    (@remiojr)

    You rock !

    Thank you very much

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome.

    But we can’t solve this problem once and forever.
    as Woocommerce doesn’t remember tax rates inside the order

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Wrong tax rate’ is closed to new replies.