• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 04.12.17, 08:55
  • Opened by: Thibaut
  • Closed by: Marek
  • Closed on: 29.12.17, 13:02
  • Reason: Closed
  • Comment: Glad to help!

Ticket #11204 - Assign new hook to a module

Hello.
On the theme setting (on Homepage), i want to add “Xipblog” on the hook “content_bttom”. I search on “Apparance” “Position” but i found nothing about the hook “content_bottom” If you can help me.
Thanks

Comments

Marek 04 Dec 2017, 10:05

Hi, Thibaut.
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your server through FTP and I’ll do that for you

Thibaut 04 Dec 2017, 10:53

Hello. For the moment my project is on localhost :/

Marek 04 Dec 2017, 10:54

Is it possible for you to reset the module?

Thibaut 04 Dec 2017, 11:23

Outch.. i make a lot of modification. Its not easy to asign a new hook to this module ?

Marek 04 Dec 2017, 11:41

for some reason this hook is not visible in prestashop back office.

You can do the following:
Open the file modules/xipblog/xipblog.php
Find the line 1094 - $id_lang = (int)$this→context→language→id;
and put before the line:

$this->registerHook("content_bottom");
Thibaut 04 Dec 2017, 11:50

So, i put this line on the file but the module is still on Hook: displayHome and not on the content_bottom.

Marek 04 Dec 2017, 17:45

it must be there.
Did you check that in the “Design” > “positions”?

Thibaut 05 Dec 2017, 14:37

Ok its work but not totaly.
Now, i see the Xip module on the hook content_bottom on my page Homepage settings. But when i activate this module on this hook, is still on the same position.
I want to put this module on the bottom of the page :/

Thibaut 05 Dec 2017, 14:37

Picture 2 (you see, the text is under the blog module and on my setting is the opposite)

Marek 05 Dec 2017, 15:07

Have you tried to clear prestashop cache?

Thibaut 05 Dec 2017, 19:57

Yes. Its the same :/

Thibaut 05 Dec 2017, 20:06

I check on the source code and the xip module is still on the class=”hook-displayHome” and not on the class=”hook-content_bottom”

Marek 06 Dec 2017, 15:34

I can only offer you to help when your website will be online. it’s really hard to help you working on ocalhost