title: prestashop compare button in product list
body: <p>I want to add the compare button (existing in product.tpl) to product-list.tpl, i've try to copy the code existing in product.tpl</p>
  <pre><code>{if isset($comparator_max_item) &amp;&amp; $comparator_max_item}
          &lt;div class=&quot;compare&quot;&gt;
          &lt;a class=&quot;add_to_compare&quot; href=&quot;#&quot; data-id-product=&quot;{$product-&gt;id|intval}&quot; style=&quot;color:black;&quot;&gt;&lt;i class=&quot;fas fa-cubes&quot; style=&quot;font-size:1.3em;padding-right:.4em;&quot;&gt;&lt;/i&gt; {l s='Add to Compare'}&lt;/a&gt;
          &lt;/div&gt;
          {/if}
          {include file=&quot;./product-compare.tpl&quot;}
          &lt;/div&gt;
  
          {*Products compare *}
          {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}
          {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}
          {addJsDef comparator_max_item=$comparator_max_item}
          {addJsDef comparedProductsIds=$compared_products}
  </code></pre>
  <p>To product-list.tpl</p>
  <pre><code>&lt;div class=&quot;compare_product_page&quot;&gt;    
          {if isset($comparator_max_item) &amp;&amp; $comparator_max_item}
          &lt;div class=&quot;compare&quot;&gt;
          &lt;a class=&quot;add_to_compare add_to_compare_list&quot; href=&quot;#&quot; data-id-product=&quot;{$product-&gt;id|intval}&quot; style=&quot;color:black;&quot;&gt;&lt;i class=&quot;fas fa-cubes&quot; style=&quot;font-size:1.3em;padding-right:.4em;&quot;&gt;&lt;/i&gt; {l s='Add to Compare'}&lt;/a&gt;
          &lt;/div&gt;
          {/if}
          
          &lt;/div&gt;
  
         
          {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}
          {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}
          {addJsDef comparator_max_item=$comparator_max_item}
          {addJsDef comparedProductsIds=$compared_products}
  </code></pre>
  <p>I don't know what i'm missing...can someone give some lights?</p>