title: WP Woocommerce is_product_category not working
body: <p>I am selling a single product on my woocommerce store, and beside that product I sell few accessories for him, so I want to use two templates. Next to <code>content-single-product.php</code> file I created another one called <code>content-single-accessory.php</code> and edit that template file.</p>
  
  <p>Next I created two categories: product and accessory, product itself is added inside product category and accessories are added inside accessory category. Now it comes the problem I am facing with. Inside <code>single-product.php</code> I did this:</p>
  
  <pre><code>    &lt;?php if (is_product_category( 'product' )) { ?&gt;
  
      &lt;?php wc_get_template_part( 'content', 'single-product' ); ?&gt;
  
      &lt;?php } else  { ?&gt;
  
      &lt;?php wc_get_template_part( 'content', 'single-accessory' ); ?&gt;
  
      &lt;?php } ?&gt;
  </code></pre>
  
  <p>and when I visit the page with product category it does not show the product template but it shows <code>content-single-accessory.php</code>. Or to be more clear, above if statement does not work at all and second template is always showed. What I am doing wrong here?</p>
  
  <p>Thanks!</p>