Title: Update order float quantity
Last modified: July 29, 2020

---

# Update order float quantity

 *  Resolved [cochii](https://wordpress.org/support/users/cochii/)
 * (@cochii)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/update-order-float-quantity/)
 * 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](https://wordpress.org/support/users/nielslange/)
 * (@nielslange)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/update-order-float-quantity/#post-13184829)
 * Hello [@cochii](https://wordpress.org/support/users/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](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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [update order](https://wordpress.org/support/topic-tag/update-order/)

 * 1 reply
 * 2 participants
 * Last reply from: [Niels Lange](https://wordpress.org/support/users/nielslange/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/update-order-float-quantity/#post-13184829)
 * Status: resolved