Jump to content

Add new position hook


mkli73

Recommended Posts

Hello my name is Marina, I am start learning presta shop.

My site link is the following

http://www.pandora-web-box.info/presta/index.php

I want to add a banner before the newsletter footer.

So I would like in the theme configurator to have an extra hook positioning except the top, left, right and footer.

I have tried a lot of things one of this is creating anew hook with the following method

1. The name of my hook is bottom

2. I have added the hook in my ps_table

name: displayBottom title: displayBottom

 

3.created the FrontController.php like this:

<?php class FrontController extends FrontControllerCore{  function displayBottom()  {    parent::displayBottom();    $this->smarty->assign(array('HOOK_BOTTOM' => Module::hookExec('bottom')));  [spam-filter]

4. I uploaded in the following directory

override/classes/controller

 

Then I go in the Theme configurator in my presta shop and the only hooks I see in the page are the top,left, right and footer.

Will it be possible to let me know what I am doing wrong.

 

Thanks in advance

Marina

Link to comment
Share on other sites

 

Then I go in the Theme configurator in my presta shop and the only hooks I see in the page are the top,left, right and footer.

Will it be possible to let me know what I am doing wrong.

 

 

about what theme configurator feature you're talking?

it's default theme configurator?

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