Title: Potential bug &#8211; time sensitive!
Last modified: February 26, 2025

---

# Potential bug – time sensitive!

 *  Resolved [venkreddy](https://wordpress.org/support/users/venkreddy/)
 * (@venkreddy)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/)
 * Hi –
 * Today, the create shipping label button is not appearing on one of our orders.
   What appears to be unique about this order is that the quantity on one of the
   items is a fractional quantity (1.5). I used Chrome’s dev mode to determine that,
   somewhere in the code, the plugin tries to create an Array using the item quantity,
   and it is crashing when trying to create an array of size 1.5. I believe this
   is why the plugin fails and does not end up showing me the create shipping label
   button.
 * I need to get this order out today! Is there any chance someone can take a look
   at this and maybe help me with a temporary workaround? Thank you!

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

 *  Plugin Contributor [Waclaw Jacek](https://wordpress.org/support/users/waclawjacek/)
 * (@waclawjacek)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18330839)
 * Hi [@venkreddy](https://wordpress.org/support/users/venkreddy/),
 * Unfortunately, decimals in the quantity field are not something supported by 
   WooCommerce out of the box. I assume you are using an extension to add this functionality?
 * As a workaround, one solution could be to [edit the order](https://woocommerce.com/document/managing-orders/view-edit-or-add-an-order/#order-items-and-totals)
   and change the quantity to a whole number while keeping the line item cost the
   same. After doing this, make sure to refresh the order page.
 * You can also use the “Order notes” section on the right-hand side to add a note
   on this change for future reference.
 * Please let me know if this helps!
 *  Thread Starter [venkreddy](https://wordpress.org/support/users/venkreddy/)
 * (@venkreddy)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18330856)
 * Thank you. Yes, I am using a plugin. I have already tried what you suggested 
   temporarily, but I am running into other issues doing that since I have to change
   the order status to pending payment vs. processing where it is now since the 
   credit card has already been charged. That’s my issue.
 * That said, FYI, I have an order from January that worked with fractional quantities–
   I was able to generate a label – so I suspect something broke with a recent update.
   Interestingly, when I open that order, I can’t see the button that lets me look
   at current shipping labels which shows up on other completed orders.
 * This does seem like a functionality break in a recent update. Not sure if there’s
   anything you can do about it or if I have to find another solution for shipping
   for our business other than manually adjusting every order that has fractional
   quantities?
 * I am wondering if there is a hook in your plugin I can use to temporarily round
   the quantities up or down just for the purpose of generating the shipping label?
   The good news is the plugin I am using is my own, so I can easily insert the 
   code into my php file if that’s possible.
 *  Thread Starter [venkreddy](https://wordpress.org/support/users/venkreddy/)
 * (@venkreddy)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18330859)
 * Alternatively, maybe I can revert the plugin to an older version temporarily?
   That would let me get this order out today and then take some time to figure 
   out a longer-term solution. Thoughts? This is where I hit the limits of my knowledge
   of WooCommerce. I can turn off autoupdates, but I don’t know if I can revert 
   a plugin to an older version without losing the data/settings of the plugin.
 *  Plugin Contributor [Waclaw Jacek](https://wordpress.org/support/users/waclawjacek/)
 * (@waclawjacek)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18330890)
 * Temporarily reverting to an older plugin version is a great idea. One way to 
   do it is using the [WP Rollback](https://wordpress.org/plugins/wp-rollback/) 
   plugin.
 * > This does seem like a functionality break in a recent update.
 * It is possible that due to an unrelated code change, it is no longer possible
   to use fractional quantities. I will bring this issue up with the team and ask
   about the possibility of addressing this issue since fractional quantities are
   not supported by WooCommerce by default.
 *  Thread Starter [venkreddy](https://wordpress.org/support/users/venkreddy/)
 * (@venkreddy)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18331266)
 * Thank you. I could work with a hook to manually adjust inputs to the plugin if
   that’s easier than supporting fractional quantities given that it is not a default
   WooCommerce state. In the meantime, it turns out the easiest solution is to create
   a direct EasyPost account and simply generate the label from there. That said,
   adding the shipment tracking manually won’t work for the same reason – the input
   box for the quantities won’t allow the tracking to be saved if the values are
   not integers. In this case, assuming this is also part of this plugin, I would
   think you could use the quantity-input.php input field or the woocommerce_quantity_input_args
   function/filter to get the min_value and step for the input field (assuming you
   don’t already – my guess is it may be hardwired?). Anyway, hope that’s helpful,
   and thanks for your help in hopefully making this work again! Thanks.
 *  Thread Starter [venkreddy](https://wordpress.org/support/users/venkreddy/)
 * (@venkreddy)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18331329)
 * More information if it’s helpful:
 * I am beginning to think that this has never worked. I believe that the old WooCommerce
   Shipping & Tax plugin that used to handle shipping is the one that worked for
   us with fractional quantities. I rolled back to September and found that the 
   same issue is happening, but the behavior is slightly different:
 * In the September version –
 * If an order has already been fulfilled, the button shows “View or add shipments”
   for both fractional and integer quantities, and the label shows “N items were
   fulfilled.” When clicked, we see existing shipments, labels, etc.
 * If an order has NOT been fulfilled, no button shows up at all. The title of the
   box (“Shipping Label”) appears, but the rest is blank.
 * In the current version –
 * If an order has already been fulfilled, the button shows “View or add shipments”
   for integer quantities, and the label shows “N items were fulfilled.” When clicked,
   we see existing shipments, labels, etc. [Same behavior as above.]
 * If an order has already been fulfilled, the button shows “Create shipping labels”
   for fractional quantities, and the label shows “N items are ready to be fulfilled.”
   When clicked, we see existing shipments, labels, etc. [NOTE: This label was created
   with the old Shipping & Tax plugin.]
 * If an order has NOT been fulfilled, no button shows up at all. The title of the
   box (“Shipping Label”) appears, but the rest is blank. [Same behavior as above.]
 * I don’t know if that is helpful for the dev team, but I am trying to give you
   everything I am discovering in case it makes it easier to fix this so we can 
   use the plugin! Thank you.
 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18332182)
 * Hello [venkreddy](https://wordpress.org/support/users/venkreddy/),
 * Thank you for your reply.
 * I appreciate your for sharing more information.
   As [Waclaw Jacek](https://wordpress.org/support/users/waclawjacek/)
   suggested, the developer team will be notified about this.
 * Have a great day!

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

The topic ‘Potential bug – time sensitive!’ is closed to new replies.

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

 * 7 replies
 * 3 participants
 * Last reply from: [Zee](https://wordpress.org/support/users/doublezed2/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/potential-bug-time-sensitive/#post-18332182)
 * Status: resolved