title: How to check if a page is category or product in woocommerce?
body: <p>I'm trying to use is_category in <code>woocommerce.php</code> which is not working. I want to print the title according the page. </p>
  
  <p>IF a page is category page then will print <code>woocommerce_page_title()</code> and if a page is product then should print <code>the_title()</code>. </p>
  
  <p>And the code I am using in <code>woocommerce.php</code> is:</p>
  
  <pre><code>&lt;?php if(is_category()){ ?&gt;                       
      &lt;h1 class="page-title"&gt;&lt;?php woocommerce_page_title(); ?&gt;&lt;/h1&gt; 
  &lt;?php }
  else{
      the_title();
  }
  ?&gt;
  </code></pre>
  
  <p>But in every case it is printing <code>the_title()</code> . I think <code>is_category()</code> is not working for woocommerce.</p>
  
  <p>Or Can any one tell how woocommerce do it to print category and product title?</p>
  
  <p>Any help will be appreciated.</p>