title: Add to Out-of-stock availability text, an availability date in Woocommerce single products
body: <p>I have following code that adds a simple notice to a single product:</p>
  
  <pre><code>add_action( 'woocommerce_after_add_to_cart_form', 'acf_field_description', 15 );
  
  function acf_field_description() {
      global $product;
  
      if ( ! $product-&gt;is_in_stock() ) {
          echo '&lt;div style="color: red;"&gt;&lt;strong&gt;' . __('Product will be available from: ', 'flatsome') . '&lt;/strong&gt;' . get_field('date_of_availability') . '&lt;/div&gt;';
      } else {
          echo __('Product is available', 'flatsome');
      }
  }
  </code></pre>
  
  <p>If statement is not working, but else statement works perfect.</p>
  
  <p>What I am doing wrong? Any help is appreciated.</p>