Jump to content

[SOLVED] Managment of HOOK_CUSTOMER_ACCOUNT


Recommended Posts

Hi PrestaTeam,

The hook HOOK_CUSTOMER_ACCOUNT is present in 2 tpl files : my-account.tpl and blockmyaccount.tpl.

Theses 2 files are called by their respective *.php files which set the HOOK_CUSTOMER_ACCOUNT through a call to Module::hookExec('customerAccount').


I'm wondering how this Module::hookExec('customerAccount') can return different HTML code depending of the *.tpl file is has to be used in.

How is it possible to return different HTML code to be used in the my-account page or in the myAccount Block ?

Thanks for your answer

Link to comment
Share on other sites

  • 4 weeks later...

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