Existing Prestashop Module

Prestashop – Override Function in Existing Prestashop Module

<?php
if (!defined('_PS_VERSION_'))
    exit;
class BlockUserInfoOverride extends BlockUserInfo
{
    public function hookDisplayNav($params)
    {
        return '<div class="header_user_info"><a>Test</a></div>';
        // return $this->display(__FILE__, 'nav.tpl');
    }
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here