title: Woocommerce - how to tell if product post has variations or not
body: <p>I am trying to edit the short-description template to be different on variable (single) product pages than on simple products. the code in that page is here:</p>
  
  <pre><code>global $post;
  if ( ! $post-&gt;post_excerpt )
      return;
  ?&gt;
  &lt;div itemprop="description"&gt;
      &lt;?php echo apply_filters( 'woocommerce_short_description', $post-&gt;post_excerpt ) ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to add some code to the if statement that will be something like</p>
  
  <p><strong>if post has variations, don't display short description, if simple product DO display</strong></p>
  
  <p>but I can't find any way in the code to distinguish between a regular simple product post and one that is variable (has variations). And looking through the API docs over at the Woo site (<a href="http://docs.woothemes.com/wc-apidocs/" rel="noreferrer">http://docs.woothemes.com/wc-apidocs/</a>) I found nothing of that sort. </p>