cihak.mar Posted January 22, 2019 Share Posted January 22, 2019 Hi, I am new in developing for Prestashop and I have a first question. I want to add some link in the head and I want it with new own module. So I created a HTML for it in modules folder and in theme.yml I assign it to the hook I am using in header part. But the code is not showed. Is there something what I missed? thanks a lot Link to comment Share on other sites More sharing options...
joseantgv Posted January 22, 2019 Share Posted January 22, 2019 2 hours ago, cihak.mar said: Hi, I am new in developing for Prestashop and I have a first question. I want to add some link in the head and I want it with new own module. So I created a HTML for it in modules folder and in theme.yml I assign it to the hook I am using in header part. But the code is not showed. Is there something what I missed? thanks a lot Check this: https://zemez.io/prestashop/support/how-to/prestashop-1-7-x-manage-modules-positions/ Link to comment Share on other sites More sharing options...
cihak.mar Posted January 22, 2019 Author Share Posted January 22, 2019 17 minutes ago, joseantgv said: Check this: https://zemez.io/prestashop/support/how-to/prestashop-1-7-x-manage-modules-positions/ So it means that every time I want a new module I have to do it in administration of website? it is not possible from code? Link to comment Share on other sites More sharing options...
joseantgv Posted January 22, 2019 Share Posted January 22, 2019 2 hours ago, cihak.mar said: So it means that every time I want a new module I have to do it in administration of website? it is not possible from code? Yes sure! Just use function registerHook() from Module class. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now