Jump to content

Problem with hooking the module


Recommended Posts

Hello ...

I have 2 problems

1st

I have categories block on the right , I want to make to left side , (using leo converse theme)

 

 

post-863031-0-10760000-1433952402_thumb.

 

2nd problem is :

 

On the displayhomecontent , I want to hook categoriesblock , which is not happening.. I get error "

This module cannot be transplanted to this hook.

 

can someone help me with my homepage should be displayed like below image

 

Categories in LEFT column (LISTview) and homepage content with Categories block (GRIDVIEW)

 

post-863031-0-65271800-1433952414_thumb.

 

 

Thanks in advance

Link to comment
Share on other sites

i think this applies to both of your problems:

when transplanting a module, the module must have a corresponding hook function defined.

 

If you just want to replicate one hooks functionality, you simply can add to the module class something like this:

public function hookNewHookName() {
$this->hookExistingHookFunction();
}

Although you should be careful about editing core modules files, because it will be overrriden when updated. So read about overriding core modules here:

http://nemops.com/override-prestashop-modules-core

Edited by pishkus (see edit history)
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...