title: Check if product is in specific category?
body: <p>I'm trying to check if a product is located in a specific category and change the label of add to cart button in product-list.tpl</p>
  
  <p>In this case i would like to display "Read more here" instead of "Add to cart" if product is located in category id 14.</p>
  
  <p>Right now all products from category 14 is getting "Add to cart"</p>
  
  <p>I'm running 1.6.0.11</p>
  
  <pre><code>{assign var='associated' value=0}                
      {foreach Product::getProductCategories($smarty.get.id_product) as $category}
         {if in_array($category, 14)}
            {assign var='associated' value=1}
         {/if}
   {/foreach}
  {if $associated==1}
    {l s='Read more here'}
  {else}
    {l s='Add to cart'}
  {/if}
  </code></pre>