• Resolved cochii

    (@cochii)


    I sell products with decimal quantities (1.5 for example).
    When there is an order with a quantity in decimal number, I cannot update it in the back office (change its status for example) while it works when all the quantities are whole numbers

    Have you ever had this problem ?
    How can we solve this?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @cochii,

    By default, WooCommerce does not handle float quantities. You could solve this problem in two ways, depending on your requirements. If you sell something in kilos or litres you could use a smaller scale:

    – 250 g instead of 0.25 kg
    – 1500 ml instead of 1.5 l

    Alternatively, you could add some custom code to your site to allow handling float quantities. I found the following code snippet that might work:

    https://stackoverflow.com/a/31048373/12001916

    Please note that this is just a link I found via Google, and that this resource is not affiliated with WordPress.com. Therefore, I cannot guarantee if the code snippets works as expected.

Viewing 1 replies (of 1 total)
  • The topic ‘Update order float quantity’ is closed to new replies.