Support » Plugin: WooCommerce » Rounding issue

  • Resolved magix88

    (@magix88)


    Hi all, We are new to wordpress and woocommerce. We realised there are some issues with the cart.
    We have no VAt or taxes. We have also set the decimals to 2 decimals. We applied bulk discount on quantity purchases.

    For example, $8.37 with a quantity discount of 21% for 100pcs should give the customer a value of $6.61 instead of $6.6123. In the cart unit price it is shown correctly rounded to 2 decimals e.g. $6.61. However at the subtotal, it is displayed as $661.23 instead of $661.00.

    https://ibb.co/PgqYk4C

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @magix88,

    The underlying issue is that WooCommerce performs calculations in 4 decimals but will only display 2 decimals if the WooCommerce-> Settings → General is set to 2 decimals.

    So, the totals in the above case are correct at $661.23, that is,

    $8.37 * 0.79 = $6.6123
    $6.6123*100= $6.6123

    I hope this clarifies.

    Thanks.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Since it’s been a while since we last heard back from you, I’m going to mark this thread resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rounding issue’ is closed to new replies.