title: PrestaShop 1.6 show promotional products (blockspecials) from the current category
body: <p>after clicking on the categories above the list of products in this category, I would like to block the promotions of products from this category.</p>
  
  <p>I currently have a module blockspecials hook in the category and I can copy / display random promotional products or all products on the promotion (as on the main page). I need products for promotions in this category which I will click, how to bite it?</p>
  
  <pre><code>if (Configuration::get('PS_CATALOG_MODE'))
              return;
  
          // We need to create multiple caches because the products are sorted randomly
          $random = date('Ymd').'|'.round(rand(1, max(Configuration::get('BLOCKSPECIALS_NB_CACHES'), 1)));
  
          if (!Configuration::get('BLOCKSPECIALS_NB_CACHES') || !$this-&gt;isCached('blockspecials.tpl', $this-&gt;getCacheId('blockspecials|'.$random)))
          {
              if (!($special = Product::getRandomSpecial((int)$params['cookie']-&gt;id_lang)) &amp;&amp; !Configuration::get('PS_BLOCK_SPECIALS_DISPLAY'))
                  return;
  
              $this-&gt;smarty-&gt;assign(array(
                  'special' =&gt; $special,
                  'priceWithoutReduction_tax_excl' =&gt; Tools::ps_round($special['price_without_reduction'], 2),
                  'mediumSize' =&gt; Image::getSize(ImageType::getFormatedName('medium')),
              ));
          }
  
          return $this-&gt;display(__FILE__, 'blockspecials.tpl', (Configuration::get('BLOCKSPECIALS_NB_CACHES') ? $this-&gt;getCacheId('blockspecials|'.$random) : null));
  </code></pre>
  
  <p>how i can change function <code>getRandomSpecial</code> to function display promotion products from current category?</p>
  
  <p>I'm not advance with Prestashop</p>