Need Decimals in Quantity Fields for Products
-
Hello –
It has been years that I have needed this along with others, I have a client who runs a Garden Center that is selling products like Mulch and Stone and sells them by the yard or the ton. For products that are sold by the yard, the quantity steps are 0.5 and the products sold by the ton are quantity steps by 0.1
This has been working from the past couple years using the patch described in the linked Github post. We have been manually updating WooCommerce files every single update for over 2 years now and it has grown increasingly frustrating that this has not been resolved yet.Now, we’re not sure if something was changed in recent updates that have caused this to stop working, but in our Rest API logs, we are getting a 400 Status when these types of products are attempting to sync with our client’s Clover POS system, with a message saying:
{ "data": { "code": "rest_invalid_param", "message": "Invalid parameter(s): stock_quantity", "data": { "status": 400, "params": { "stock_quantity": "stock_quantity is not of type integer." }, "details": { "stock_quantity": { "code": "rest_invalid_type", "message": "stock_quantity is not of type integer.", "data": { "param": "stock_quantity" } } } } }, "headers": { "Allow": "GET, POST, PUT, PATCH, DELETE" }, "status": 400 }
Was something changed recently that would cause a conflict with the linked patch? Or is there something else going on?
Also, when is this ever going to be changed/updated in WooCommerce core to allow decimals in quantity fields for products?
Thanks
The page I need help with: [log in to see the link]
- The topic ‘Need Decimals in Quantity Fields for Products’ is closed to new replies.