Additional stock options in woocommerce
<p>I use this code for adding stock options on woocommerce</p>

<pre><code>// New Stock Statuses
function add_custom_stock_type() {
?&gt;
&lt;script type="text/javascript"&gt;
jQuery(function(){
    jQuery('._stock_status_field').not('.custom-stock-status').remove();
});
&lt;/script&gt;
&lt;?php

woocommerce_wp_select( array( 'id' =&gt; '_stock_status', 'wrapper_class' =&gt; 'hide_if_variable custom-stock-status', 'label' =&gt; __( 'Stock status', 'woocommerce' ), 'options' =&gt; array(
    'instock' =&gt; __( 'In Stock', 'woocommerce' ),
    'outofstock' =&gt; __( 'Out of stock.', 'woocommerce' ),
    'onrequest' =&gt; __( 'Product is out of stock but available in physical store.', 'woocommerce' ), // The new option without add to cart button
    'preorder' =&gt; __( 'Product can be preordered.', 'woocommerce' ), // The new option that should have add to cart button
), 'desc_tip' =&gt; true, 'description' =&gt; __( 'Controls whether or not the product is listed as "in stock" or "out of stock" on the frontend.', 'woocommerce' ) ) );
}

add_action('woocommerce_product_options_stock_status', 'add_custom_stock_type');

function save_custom_stock_status( $product_id ) {
update_post_meta( $product_id, '_stock_status', wc_clean( $_POST['_stock_status'] ) );
}

add_action('woocommerce_process_product_meta', 'save_custom_stock_status',99,1);

function woocommerce_get_custom_availability( $data, $product ) {
switch( $product-&gt;stock_status ) {
    case 'instock':
        $data = array( 'availability' =&gt; __( 'In Stock.', 'woocommerce' ), 'class' =&gt; 'in-stock' );
    break;
    case 'outofstock':
        $data = array( 'availability' =&gt; __( 'Out of Stock.', 'woocommerce' ), 'class' =&gt; 'out-of-stock' );
    break;
    case 'onrequest':
        $data = array( 'availability' =&gt; __( '', 'woocommerce' ), 'class' =&gt; 'on-request' );
        echo '&lt;p class="stock on-request"&gt;Out of stock, but in physical store&lt;/p&gt;';
    break;
    case 'preorder':
        $data = array( 'availability' =&gt; __( '', 'woocommerce' ), 'class' =&gt; 'preorder' );
        echo '&lt;p class="stock on-request"&gt;Preorder product.&lt;/p&gt;';
    break;
}
return $data;
}
add_action('woocommerce_get_availability', 'woocommerce_get_custom_availability', 10, 2);
</code></pre>

<p>This code adds additional statuses to the original stock options in WooCommerce, but set the new statuses as out of stock which means it removes the add to cart button on product page.</p>

<p>I’m wondering, though, is there any way to add more stock statuses that are ”in stock”?</p>

<p>I would like to add additional statuses that are out of stock, like now (which removes the add to cart-button) and some that still has the add to cart button.</p>

<p>Is this possible?</p>