• Resolved simakaaa

    (@simakaaa)


    The plugin itself works fine.
    However, when the “Add “Cost of Goods: Add stock” meta box to the product edit page” is activated, when I add stock with the price, it updates everything, but it looks like not in the way it should.
    What I mean – I use “Stock sync” plugin to sync the stock quantity (only, nothing else) and whatever I do (orders, cancellations etc), the stock sync plugin works.
    With the Add stock meta – it does not work anymore.

    My 5 cents is that the field is not updated in the correct way (so to trigger events etc).
    The referred plugins is: https://www.ads-software.com/plugins/stock-sync-for-woocommerce/

    If I manually edit the stock field in the standard way, it’s all fine.

    • This topic was modified 3 years, 3 months ago by simakaaa.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Zohaib

    (@zohaibayub85)

    Hi,

    Unfortunately, we cannot comment on compatibility with the Stock Sung for WooCommerce plugin.

    We will test this and get back to you soon.

    • This reply was modified 3 years, 3 months ago by Zohaib.
    Thread Starter simakaaa

    (@simakaaa)

    Thanks!
    Yes the other plugin was an example.
    But from what I can see as a functionality, the field is probably (a blind call here) updated in a way that it does not trigger the events correctly, thus every other related functionality could result an error.

    Plugin Contributor Pablo Pacheco

    (@karzin)

    Hi,

    Sorry for the long delay. I’ve just changed the way it updates the stock:

    From
    update_post_meta( $product_id, '_stock', $stock );

    To
    wc_update_product_stock( $product_id, $stock );

    It should work on version 2.5.3 onwards. It will be on our next release.
    I’m closing the ticket. Let me know if you need more help.

    Thread Starter simakaaa

    (@simakaaa)

    Awesome, thanks! Looks good and should do the job. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not updating properly the stock’ is closed to new replies.