Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Decimal problem

Home / Forums / Virtue Theme / Decimal problem

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
February 26, 2016 at 3:41 am

We need to use decimal 0,1, 0,2 and so on and start at 0,5 when the customer shops. When we add to 0,6 it’s ok at 0,7 it = 0,7999999999999999. If you want to try for your self test on this product by adding with +.

Answer from the developer of the plug-in:
The problem is your themes javascript file. It converts the numbers to floats, and because of the way computers store floats, there is a minor inaccuracy.
So if you know about javascript, you can remove parseInt functionality from the file: wc-quantity-increment.min.js.

Plugin

We don’t know how to do this, can you help us?

Kind Regards
Vattenliv

  • The forum ‘Virtue Theme’ is closed to new topics and replies.