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
-
Dear Justus,
On order placement stock should change normally, which split method are you using?
Thanks,
FahadHey 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.3Best,
JustusPerfect 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
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 anymoreIf you need anything else, don’t hesitate to contact me.
Thanks for your help!
JustusDear 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 3 years, 11 months ago by
Fahad Mahmood.
Thanks a lot!
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
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,
FahadHello 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
Dear Marcel,
I will check and reply. Thank you.
Fahad
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
Dear Justus,
If you are confirming that it is working like this, I can push this change and then you can try further.
Thanks,
FahadPlease 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
That works for us π
Would be awesome if you can push it on the next update!Thanks π
On the way.
-
This reply was modified 3 years, 11 months ago by
The topic ‘Stock does not change’ is closed to new replies.