Jump to content

Module insert into Authentication.php


Recommended Posts

I am working on a module and I want it to hook into the “checkout” page. The actual page is authentication.php. However, when I use the “authentication” hook:

$this->registerHook('authentication')


I only see the module inserted only if the user is logged in. I need to insert module on the same screen as the 2 other choice boxes “Create your account” and “Already registered?”. I want a new box below this. My code works because I see my module inserted in other places (as a test). But, I don’t understand why there is no specific hook for the authentication.php (without being logged in). If at all possible, I rather do this from the prestashop API, not manually editing the authentication.tpl to insert my module.

Another question related to module development. Is it possible to make the installation routine copy new .php files to specified directories? My module has some new .php pages I need to have in prestashop.

Thanks for any help in advance.

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...