• Resolved eugenesomething

    (@eugenesomething)


    Hello!

    I have issues with WooCommerce Advanced Quantity plugin and WooCommerce plugin.

    For certain goods that use quantities with a QTY step of 0.1 kg at certain values rounding issues arise. Specifically, this happens when I try to select 0.3 or 0.7 kgs of the product. Amounts get broken with the last digits becoming like 0.*000004 or something. This happens when I use native WooCommerce QTY switches (white ones). When I use WooCommerce Advanced Quantity switches (black ones) I see that + is not working, but – is working well and works around this error with rounding.

    This issue happens when I use Chrome both Mobile and Desktop versions but never happens on Firefox Desktop or Mobile.

    I’ve noticed that the Advanced WC QTYs plugin uses certain JS code to properly find out the number of decimals and get rid of this issue. Can you implement similar functionality in the base WooCommerce plugin QTY switches or improve compatibility with the Advanced WC QTYs plugin?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kel C. a11n

    (@kellymetal)

    Hi there,

    For certain goods that use quantities with a QTY step of 0.1 kg at certain values rounding issues arise. Specifically, this happens when I try to select 0.3 or 0.7 kgs of the product.
    […]
    Can you implement similar functionality in the base WooCommerce plugin QTY switches or improve compatibility with the Advanced WC QTYs plugin?

    As you have found, that sort of “0.*” step quantity functionality is not part of the core WooCommerce functionality, and is coming from the Advanced Quantities plugin you are using. To fix that rounding issue that you are seeing, it would need to be fixed in the Advanced Quantities plugin — if this is the plugin you are using, please report it here:
    https://ww.wp.xz.cn/support/plugin/woocommerce-incremental-product-quantities/

    For feature/enhancement requests in the core WooCommerce plugin, please add them to our Ideas board here, which is where developers go for ideas:
    http://ideas.woocommerce.com/forums/133476-woocommerce

    Thank you!

    Hi @eugenesomething,

    We have not heard from you in a while so I’m marking this thread as resolved. If you do have more trouble with this, please open up a new topic and we’ll be happy to help you out.

    Take care

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rounding issues with WooCommerce Advanced Quantities Plugin’ is closed to new replies.