title: PRESTASHOP 1.6 Display product category description on product list page
body: <p>I have been trying to display my category description into the product listing page but can't crack it still.</p>
  
  <p>I tried following codes and add it into my product-list.tpl;</p>
  
  <pre><code>($default_category-&gt;description)
  </code></pre>
  
  <p>AND </p>
  
  <pre><code>($product.default_category-&gt;description)
  </code></pre>
  
  <p>I understand that I need to modify the Product.php class function but I am not sure which one.
  Can anyone guide me on this?</p>
  
  <p>I had tried to modify getProductsProperties class by adding</p>
  
  <pre><code>$results_array = array(); 
  $categories_ids = Product::getProductCategories($row['id_product']);
  $categories_names = array();
  foreach ($categories_ids AS $id) {
  $category = new Category($id);
  $categories_names[] = $category-&gt;getName();
  }
  $row['categories'] = $categories_names;
  </code></pre>
  
  <p>then add following codes to product-list.tpl but it didn't show anything.</p>
  
  <pre><code>&lt;!-- Display categories --&gt;
  &lt;span id="product_categories"&gt;
  {foreach from=$product.categories item=category name=category}
  {$category} &lt;br/&gt;
  {/foreach}
  &lt;/span&gt;
  </code></pre>