• Resolved gamernamer

    (@gamernamer)


    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

    (@fahadmahmood)

    Dear Justus,

    On order placement stock should change normally, which split method are you using?

    Thanks,
    Fahad

    Thread Starter gamernamer

    (@gamernamer)

    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

    (@fahadmahmood)

    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

    (@gamernamer)

    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

    (@fahadmahmood)

    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 2 years, 5 months ago by Fahad Mahmood.
    Thread Starter gamernamer

    (@gamernamer)

    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

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    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

    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

    (@fahadmahmood)

    Dear Marcel,

    I will check and reply. Thank you.

    Fahad

    Thread Starter gamernamer

    (@gamernamer)

    @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

    (@fahadmahmood)

    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

    (@fahadmahmood)

    @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

    (@gamernamer)

    @fahadmahmood

    That works for us ??
    Would be awesome if you can push it on the next update!

    Thanks ??

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    On the way.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Stock does not change’ is closed to new replies.