Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>notice:this answer is about prestashop 1.5 and also you can use it for prestashop 1.6 too.</p> <p>if your means about <code>product details page</code> is the more info tab as i show in bellow image i can help you</p> <p><img src="https://i.stack.imgur.com/cRp4V.png" alt="detail hook"> </p> <p>step1.you should instal two hook in install function in your module</p> <pre><code> public function install() { return parent::install() &amp;&amp; $this-&gt;registerHook('displayProductTab')&amp;&amp; $this-&gt;registerHook('displayProductTabContent') } </code></pre> <p>step2:you should use them and return the some html code i want add a new tab i use.<br> notice:<code>id</code> is dynamic you change it but <code>class</code> is static should be use as the <code>selected</code>. also <code>href</code> is linked to the content id(you see that in step 3)</p> <pre><code> public function hookDisplayProductTab($params) { return '&lt;li&gt; &lt;a id="myid" class="selected" href="#linked"&gt;mytab&lt;/a&gt; &lt;/li&gt;' } </code></pre> <p>step3:if want when you click on mytab this show the it's content you add an other function. notice:the href="#linked" at previous function is linked to the id="linked".</p> <pre><code> public function hookDisplayProductTabContent($params){ return &lt;div id="linked" class="rte"&gt; &lt;div class="product-overview-full"&gt; my contents &lt;/div&gt; &lt;/div&gt; } </code></pre> <p>advanced:write your html or smarty in your .tpl and return theme weth this code</p> <pre><code> return $this-&gt;display(__FILE__, 'mytpl.tpl') ; </code></pre> <p>best regards.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload