{"id":18983407,"date":"2026-08-04T09:58:40","date_gmt":"2026-08-04T09:58:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/product-stock-completely-wrong-after-splitting-orders\/"},"modified":"2026-08-04T09:58:40","modified_gmt":"2026-08-04T09:58:40","slug":"product-stock-completely-wrong-after-splitting-orders","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/product-stock-completely-wrong-after-splitting-orders\/","title":{"rendered":"Product stock completely wrong after splitting orders"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I was testing whether stock mutations are as expected when splitting orders with this plugin. I was shocked to find out that the stock gets completely messed up from the split order option. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have product X, 8 on stock. If I have an order with Product X, quantity 10x, the normal response is to decrease stock with 10, so stock becomes -2. The order is &#8220;in procesing&#8221;. <br \/><br \/>I can only deliver 8 out of 10. So I split the order, the new order gets Product X, quantity 2x. I delivered the first 8, so the original order I move the status to &#8220;Completed&#8221;. <br \/><br \/>Now suddenly the stock increased by 2 and becomes 0, while it&#8217;s supposed to stay the same! I think it increases it because it somehow detects that 2 products are not in the order anymore? Anyway, the new, splitted order, I would put &#8220;On hold&#8221; until I can deliver them. Then, when I can deliver the rest of the product (2x), I would move the status of the new order to &#8220;Completed&#8221;. Now the stock INCREASES again, this time with +8, and even though I have delivered 10 items, my stock is now exactly the same as it was before the order ever got placed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Needless to say, I am not going to be using this plugin anymore.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WP 6.9.4.<br \/>WooCommerce 10.9.4.<br \/>Order Splitter version: free 1.4.11<br \/><\/p>\n","protected":false},"template":"","class_list":["post-18983407","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18983407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18983407\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18983407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}