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