Viewing 7 replies - 1 through 7 (of 7 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    Hi @eazy24,

    I’m sorry, neither screen shot worked. Can you provide a link to your site?

    Thread Starter eazy24

    (@eazy24)

    sorry,deleted screenshots,but i uploaded again,here is problem i got when inserted price is 0,229

    screenshot

    its variable product and comma settings are as default set to 2
    woocommerce deposits plugin from here,enabled

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    No worries.

    So, the problem is due to the rounding. Here are the amounts:

    item:
    .229 => .23
    vat (20%):
    .0458 => .05
    total:
    0.2748 => 0.27

    The same thing happens with the other price you mentioned:
    item:
    .178 => .18
    vat:
    .0356 => .04
    total:
    .2136 => .21

    Calculations are done on the actual amounts, and are then rounded to the decimal chosen. This is done for each line item, tax amount, and total individually.

    Thread Starter eazy24

    (@eazy24)

    ok tnx,i set my site to 3 places after comma,now everything look ok

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    Sounds good ??

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    Sorry for the late reply, another resolution to the issue may be changing how the rounding works. In WooCommerce > Settings > Tax, there is a Rounding checkbox that makes this change: “Round tax at subtotal level, instead of rounding per line”

    Thread Starter eazy24

    (@eazy24)

    tnx

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with Total Calculation woocommerce on vers 2.4.12’ is closed to new replies.