• Resolved gergeda008

    (@gergeda008)


    Hello, sorry for my english im use google translate for this ??

    I need some code to make the manage stock option the default for both – simple and variable products.

    i tried using this code –

    if ( is_admin() ) {
     add_filter( 'woocommerce_product_variation_get_manage_stock', '__return_true' );
    }

    it works, the manage stock checkbox for variation appears, but in fact, it does not work correctly.
    if I use this code, it still gives me ordering more products than indicated.

    I hope the translator translated correctly and you understood me ??
    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support B C. a11n

    (@battouly)

    Hi there!

    Looks like you want to set Low Stock Thresholds for Variable products – is that correct?

    If that’s the case, right now you can either manage stock at the variation level and lose the low stock threshold feature, or manage it at the product level and lose the correct indications in wp-admin for whether it’s out of stock or not.

    Here’s a long issue discussing it:
    https://github.com/woocommerce/woocommerce/issues/22706#issuecomment-490874057

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @gergeda008,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘manage stock by default’ is closed to new replies.