• Resolved patesaubeurre

    (@patesaubeurre)


    Hello everyone!

    I’m having an issue with WooCommerce where my stock isn’t updating for product variations.

    In fact, only the first variation accepts the stock update. Stock updates for the other variations are not saved after I hit save.

    I’ve recorded a video to illustrate the issue : https://youtu.be/0JJucu1rO-g
    WordPress, the DIVI theme, and my various plugins are all up to date.
    I’m using the latest version of PHP.

    Does anyone have an idea of what might be causing this problem and how I could fix it?

    Thanks in advance for your feedback!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the video recording of the issue. I’ve tried to replicate the issue on my site but was unable to reproduce it.

    It seems like there may be a plugin or custom code on your site causing this issue. For testing purposes, could you please deactivate all plugins except WooCommerce and switch to a default WordPress theme, such as Twenty Twenty-Four or Storefront, to see if the issue resolves?

    For more details on how to perform a conflict test, you can refer to this guide:
    How to Test for Plugin and Theme Conflicts

    Let me know how it goes!

    I believe the issue to be Facebook for WooCommerce, specifically this change:

    https://github.com/facebook/facebook-for-woocommerce/commit/ce0eec5811d3d88d37c9fc558f7cd1d1eb26da47

    Notice how when you initially open the product variations, the “Save changes” button is not disabled, even though no changes have been made yet, and also after saving it doesn’t become disabled. The change event triggered by FB for WC is causing the variations to become dirty and cause multiple saves with race conditions or something like that.

    If OP can try to replicate what they did in the video while the FB for WC plugin is disabled, it should confirm or deny this.

    Zee

    (@doublezed2)

    Hello ska-dev,

    Thank you for your message here.

    I appreciate your steps in helping out a fellow WooCommerce merchant.
    Let’s if patesaubeurre can replicate the issue with Facebook for WooCommerce disabled.

    Have a great day!

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

The topic ‘Stock Update Issue’ is closed to new replies.