How to get woocommerce inventory status [closed]

Try something like this

    global $product;
    if ( ! $product->managing_stock() && ! $product->is_in_stock() )
    echo '<p>This product is out of stock. It can be purchased by custom made order.</p>';

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)