title: Opencart 2.1.0.1 change Related Products title if a certain Parent Category
body: <p>I have been having several issues with what I think would be simple workarounds logically. </p>
  
  <p>For this case, I have a client that wants the Related Products section on the product page to say "Spare Parts" if that product is under the Equipment parent category and "Related Products" for everything else.</p>
  
  <p>In my product.tpl file, I have inserted the following if statement:</p>
  
  <pre><code>&lt;div class="box-heading"&gt; 
  
      &lt;?php
      if (isset($category_id) &amp;&amp; ($category_id == '59' || $category_id == '106' || $category_id == '86' ) ) { ?&gt;
          Spare Parts
      &lt;?php } else { ?&gt;
          Related Products
      &lt;?php } ?&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I had success on the statement working when I specifically targeted the product ID but in this case there are so many products it wouldn't make any sense to target by product. I really need to be able to target the Equipment product category specifically and have the if statement apply to all sub categories under that parent category. </p>