Jump to content

Edit History

ps8modules

ps8modules

And module:
 

public function hookDisplayProductActions(array $params)

{

    if('product' == $this->context->controller->php_self){

        $idProduct = Tools::getValue('id_product');

        $myParams = 'Hello Word !';

        $this->smarty->assign('myParams', $myParams);  

        return $this->display(__FILE__, 'views/templates/front/my_module.tpl');

    }    

}

 

And my_module.tpl:

{block name='my_module'}
<hr>
<div class="my_module_class">
    <div class="clearfix" style="display:flex;">
        <div class="my-btn">{$myParams}</div>   
    </div>
</div>
{/block}

 

ps8modules

ps8modules

And module:
 

public function hookDisplayProductActions(array $params)

{

    if('product' == $this->context->controller->php_self){

        $idProduct = $params['id_product'];

        $myParams = 'Hello Word !';

        $this->smarty->assign('myParams', $myParams);  

        return $this->display(__FILE__, 'views/templates/front/my_module.tpl');

    }    

}

 

And my_module.tpl:

{block name='my_module'}
<hr>
<div class="my_module_class">
    <div class="clearfix" style="display:flex;">
        <div class="my-btn">{$myParams}</div>   
    </div>
</div>
{/block}

 

ps8modules

ps8modules

And module:
 

public function hookDisplayProductActions(array $params)

{

    if('product' == $this->context->controller->php_self){

        $idProduct = $params['id_product'];

        $myParams = 'Hello Word !';

        $this->smarty->assign('myParams', $myParams);  

        return $this->display(__FILE__, 'views/templates/front/my_module.tpl');

    }    

}

 

And my TPL:

{block name='my_module'}
<hr>
<div class="my_module_class">
    <div class="clearfix" style="display:flex;">
        <div class="my-btn">{$myParams}</div>   
    </div>
</div>
{/block}

 

ps8modules

ps8modules

And module:
 

public function hookDisplayProductActions($params)

{

    if('product' == $this->context->controller->php_self){

        $idProduct = $params['id_product'];

        $myParams = 'Hello Word !';

        $this->smarty->assign('myParams', $myParams);  

        return $this->display(__FILE__, 'views/templates/front/my_module.tpl');

    }    

}

 

And my TPL:

{block name='my_module'}
<hr>
<div class="my_module_class">
    <div class="clearfix" style="display:flex;">
        <div class="my-btn">{$myParams}</div>   
    </div>
</div>
{/block}

 

ps8modules

ps8modules

And module:
 

public function hookDisplayProductActions($params)

{

    if('product' == $this->context->controller->php_self){

        $idProduct = $params['id_product'];

        $myParams = array();

        $this->smarty->assign('myParams', $myParams);  

        return $this->display(__FILE__, 'views/templates/front/my_module.tpl');

    }    

}

 

×
×
  • Create New...