• Hi! I use your great plugin on our site. To export taxes I use your custom code for exporting sorted by tax rate (extremely helpful!). I was wondering if it is possible to get the tax numbers without rounding though? I asked this quesiton about a year ago and you posted this:

    you should replace
    $this->taxes[‘tax_’.$tax->rate_id ] = wc_round_tax_total($tax->amount);
    with
    $this->taxes[‘tax_’.$tax->rate_id ] = $tax->amount;

    Then it worked great, but now I’ve tried again and am getting the rounded numbers still. Do you have any advice? Thank you kindly!

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

    (@algolplus)

    hi

    is “Format numbers” on (“Misc Settings”) ?

    Thread Starter evmapa

    (@evmapa)

    Format number is on Misc Settings, yes. But checking it makes no difference in the number of decimals shown. Or how do you mean? Thanks.

    Plugin Author algol.plus

    (@algolplus)

    you use code “add all taxes as columns”

    please, edit it and remove ‘format’=>’money’ in line

    
    $fields['tax_'.$tax->tax_rate_id] = array('label'=>$tax->tax_rate_name,'checked' => 1, 'segment'=>'cart','colname'=>$tax->tax_rate_name, 'format'=>'money');
    
    • This reply was modified 6 years, 1 month ago by algol.plus.
    • This reply was modified 6 years, 1 month ago by algol.plus.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxes without rounding’ is closed to new replies.