Title: Stock does not change
Last modified: May 27, 2022

---

# Stock does not change

 *  Resolved [gamernamer](https://wordpress.org/support/users/gamernamer/)
 * (@gamernamer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/)
 * Hey!
    We’ve installed the Plugin and noticed that the stock isn’t changed anymore.
   Is there any option I’m missing that the stock of the items will be changed imidediately
   after a customer bought the Product?
 * Thanks!
    Justus

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

 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15685962)
 * Dear Justus,
 * On order placement stock should change normally, which split method are you using?
 * Thanks,
    Fahad
 *  Thread Starter [gamernamer](https://wordpress.org/support/users/gamernamer/)
 * (@gamernamer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15685997)
 * Hey Fahad, thanks for the fast reply!
    We are using the ‘Inclusive’ method. I’ve
   created a short video to demonstrate the flow.
 * + We are using wordpress an a multisite environment
    + There are no errors in
   our debug log + Newest Plugin Version + WordPress 5.9.3
 * Best,
    Justus
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15686067)
 * Perfect demonstration, I will surely reproduce it on my end to fix. Kindly try
   the latest version as well because I will be testing on 4.6.3
 *  Thread Starter [gamernamer](https://wordpress.org/support/users/gamernamer/)
 * (@gamernamer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15686205)
 * I’ve tried it as well on 4.6.3. Still the same Problem.
 * I have also tested some of the old versions of your plugin and noticed:
 * 1. In version 4.5.9 the stock changed when you set the order from ‘proccessing’
   to ‘Pending payment’ but not in the other direction.
    2. Since 4.6.0 nothing 
   changed anymore
 * If you need anything else, don’t hesitate to contact me.
    Thanks for your help!
   Justus
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15712971)
 * Dear Justus,
 * Another option under after split section added as “Reduce stock from all orders
   including child orders”. You will get it in new version 4.6.4. You might will
   not see the order notes about the stock reduction but actually stock will be 
   reduced, you need to verify the values.
 * Thanks,
    Fahad
    -  This reply was modified 4 years, 2 months ago by [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/).
 *  Thread Starter [gamernamer](https://wordpress.org/support/users/gamernamer/)
 * (@gamernamer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15733660)
 * Thanks a lot!
 *  [msfromg](https://wordpress.org/support/users/msfromg/)
 * (@msfromg)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15739168)
 * Hello-
 * thanks for your plugin. We have the WooCommerce Product Bundles Plugin installed
   and are splitting this into separate orders (default method). The products each
   have variations.
 * We updated to 4.6.4. to reduce stock of the child orders. But the issue is, stock
   gets adjusted to 1 after an order is set to processing. Before we had stock 25
   and after setting to processing, the status is 1. Can you check that?
 * Best regards, Marcel
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15742793)
 * Dear Marcel,
 * Please guide me a little more about it, are you talking about the product/variations
   stock reduction? And you observed the stock value being overwritten after split
   by 1? Instead of being 24 or 23, am I right? Kindly take some screenshots or 
   record a video to explain the issue or use the urgent help option under the help
   tab on settings page.
 * Thanks,
    Fahad
 *  [msfromg](https://wordpress.org/support/users/msfromg/)
 * (@msfromg)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15743827)
 * Hello Fahad-
 * yes, that is exactly the issue. I sent you an email with a video recording (I
   do not want to share this here publicly).
 * Thanks for your offer to help!
 * Marcel
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15744052)
 * Dear Marcel,
 * I will check and reply. Thank you.
 * Fahad
 *  Thread Starter [gamernamer](https://wordpress.org/support/users/gamernamer/)
 * (@gamernamer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15748878)
 * [@fahadmahmood](https://wordpress.org/support/users/fahadmahmood/)
 * I just realized that it doesn’t work properly after all. I’ve looked in your ‘
   wc_os_reduce_order_stock’ function. I am not sure about this line
 * `$updated_stock = ($items_ids[$item_key]['qty_ordered']+$items_ids[$item_key]['
   qty_stock_status']);`
 * Here you are adding the ordered Item count to the (already) reduced Item count.
   Should it not be?
    `$updated_stock = ($items_ids[$item_key]['qty_stock_status']);`
 * // After that everything works as expected on our side (or am I missing a reason
   for that?)
 * Justus
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15748885)
 * Dear Justus,
 * If you are confirming that it is working like this, I can push this change and
   then you can try further.
 * Thanks,
    Fahad
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15748897)
 * [@msfromg](https://wordpress.org/support/users/msfromg/)
 * Please double check this option and try the latest version in which default split
   method will also consider the stock reduction.
 * Reduce stock from all orders including child orders **No/Yes**
 *  Thread Starter [gamernamer](https://wordpress.org/support/users/gamernamer/)
 * (@gamernamer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15748902)
 * [@fahadmahmood](https://wordpress.org/support/users/fahadmahmood/)
 * That works for us 🙂
    Would be awesome if you can push it on the next update!
 * Thanks 🙂
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15748924)
 * On the way.

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

The topic ‘Stock does not change’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-splitter/assets/icon-256x256.png?rev=2640211)
 * [Order Splitter for WooCommerce](https://wordpress.org/plugins/woo-order-splitter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-splitter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-splitter/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-splitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-splitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-splitter/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/stock-does-not-change/#post-15748924)
 * Status: resolved