Jump to content

I need to transplant a module into a hook, but hook is not showing in the hook options list


mariadb

Recommended Posts

Hello, I'm in Prestashop 1.6.1.4. I need to hook the module "Manufacturers Image Block" to the hook displayFooterProduct, but it's not showing in the "Transplant to" list. What do I need to do for it to appear? I've been doing some research, but I don't fully understand what I'm reading (I don't code, but I can follow instructions). Thanks for your help.

 

image.thumb.png.a5ba7780a6df2564ab0d81557db92101.png

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...
  • 1 year later...

In that case you need to register that hook by code. Just put the below code in the constructor and load your page. Then you need to remove that code again

$this->registerHook("hookname");

Since this is a hassle and if the site is live you need to upload the files.  You can avoid that hassle with this module https://codecanyon.net/item/generate-hooks-for-prestashop/30937295?s_rank=1 

Regards

SmartDataSoft

Edited by SmartDataSoft (see edit history)
Link to comment
Share on other sites

  • 5 months later...
On 12/1/2018 at 10:35 AM, Rhobur said:

you need to add the hook first in the PS hook tables, look at those table in phpmyadmin or use this, https://mypresta.eu/modules/administration-tools/hooks-manager.html

I have checked that my hook is in pr_hook and it appears in the Design -> Positions list, but it doesn't appear on the dropdown in Transplant a module or within the module I want to use it with.  Am I missing something?

Link to comment
Share on other sites

5 hours ago, SmartDataSoft said:

Check out this module. It will help you transplant hooks more easily

It has a paid version available on https://1.envato.market/MXKGLn

The free version didn't help - the new hook that I can see in the database (DisplayHomeTop4) didn't show.

 

image.thumb.png.d4a3a1b365a6c6ef95b412536de19ab0.png

 

Whilst looking at this I noticed the free template you have developed. It looked promising so I thought I'd have a play with it but I didn't get very far. I installed it, activated it, put the template files in the templates folder (although it didn't actually say to do this) and went to preview one and all I got was the attached. I'm sure I'm missing something here.

For info,my business is very small (profit of a few hundred GBP). I've done some web development with a variety of tools and even some programming in the past so I'm pretty computer literate.

I'm proud of my design expertise so I want my site to look as good as possible without too much expense of time.

TIA

Debbie

 

 

primising template capture.jpg

Link to comment
Share on other sites

46 minutes ago, MightyMouseofGod said:

The free version didn't help - the new hook that I can see in the database (DisplayHomeTop4) didn't show.

 

image.thumb.png.d4a3a1b365a6c6ef95b412536de19ab0.png

 

Whilst looking at this I noticed the free template you have developed. It looked promising so I thought I'd have a play with it but I didn't get very far. I installed it, activated it, put the template files in the templates folder (although it didn't actually say to do this) and went to preview one and all I got was the attached. I'm sure I'm missing something here.

For info,my business is very small (profit of a few hundred GBP). I've done some web development with a variety of tools and even some programming in the past so I'm pretty computer literate.

I'm proud of my design expertise so I want my site to look as good as possible without too much expense of time.

TIA

Debbie

 

 

 

Please open ticket in our support system https://support.classydevs.com our team will help you.

We always try to help small business with free quality products than other did.

Thank you

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