How to fix quantity decimal round?

Sometimes we need decimal quantity for our WooCommerce store. But there is a bug when using decimal quantity. If I use quantity step 1.02 or something like this then when increase the quantity 1.02 could be a big decimal number like 3.00000006. I’ll show you how to fix it by using jQuery.

We need to check every time the quantity value if it going big. Below this javascript code will do all for you.

If you got any issue please let me know by comments.

Leave a Comment