Jump to content

PS1.7 beta 2 displayCustomerAccountForm etc not working


boxybh28

Recommended Posts

public function hookDisplayCustomerAccountForm($params)
    {
       return $this->display(__FILE__, 'aa.tpl');
    } 
    
    public function hookDisplayCustomerAccountFormTop($params)
    {
       return $this->display(__FILE__, 'aa.tpl');
    }
public function install()
	{
		 if 
         (
                !parent::install() || !$this->registerHook
                (
                    array
                    (
                            'displayHeader',
                            'displayCustomerAccountForm',
                            'displayCustomerAccountFormTop',
                            'actionCustomerAccountAdd',
                            'additionalCustomerFormFields',
                    )
                )
        ) 
        {
            return false;
        }
	}
'displayCustomerAccountForm' 'displayCustomerAccountFormTop' 'actionCustomerAccountAdd',

well in the module if we hook  the above  these are not working at all??

 

a simple text to be displayed in a tpl.

 

I tried to make it to make a log fine in hook itself but it seems it is not reading these as if they are disabled ....

 

 

Link to comment
Share on other sites

I suggest you to check current state of template files:

https://github.com/PrestaShop/PrestaShop/tree/develop/themes/classic/templates/customer

 

As you can see many of these hooks are not yet available. Feel free to make Pull Requests here:

https://github.com/PrestaShop/PrestaShop

 

and add hooks which you want to have.

 

More informations about contributing code to PrestaShop:

http://doc.prestashop.com/display/PS16/Contributing+code+to+PrestaShop

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...