Jump to content

Add new hook


Recommended Posts

Hello. 
 
I recently purchased a theme for prestashop and I need to change some things. 
 
The theme is "Pos Auriga" (http://themeforest.net/item/pos-auriga-fashion-responsive-prestashop-theme/full_screen_preview/6276930). You see, in the theme there are two menus and I need a more menu located at the top in fixed position. 
 
I would like to appear on the top menu: language, login, my account and cart 
In the menu of the big square I need an internal link, a link to a CMS page, two external links and contact. 
 
The third menu I can change it from the backend. The searcher stays where it is, but right aligned.
 
I created a new hook in the database,  I added the hook inside a div in the header.tpl 
<div class="top_menu"> 
    {$ HOOK_SUPERTOP} 
</ div>

and I added the functionality I want the blocks to anchor leveraging the functionality of a hook already created

public function hookSuperTop($params)
	{
		return $this->hookTop($params);
	}
Does anyone know a guide to create hooks in Prestashop 1.5.6.1?   Información del servidor

Información del servidor: Linux #1 SMP Tue May 14 20:38:14 MSK 2013 x86_64

Versión del servidor web: Apache

Versión de PHP: 5.2.17

Límite de memoria: 512M

Tiempo Máximo de ejecución: 180

Configuración de la base de datos

Versión de MySQL: 5.1.66-cll

Motor MySQL: InnoDB

Prefijo de las tablas: *******_

Configuración la tienda

Versión de PrestaShop: 1.5.6.1

Enlace de su tienda: http://mujeresconarte.com/index.php

Tema actual: moat

Configuración de email

Modo de envío de emails: Utiliza la función email() de PHP

Sus datos

Navegador utilizado: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36

 

 

Link to comment
Share on other sites

Hello again. 

 

Thanks for your ansver.

 

I have it running on the frontcontroller.php and I modified the .php files.'s In both folders of modules (the folder of the root and the folder of activated topic). 

 

I have transplanted the module to hook from the backend, but not shown on the page (or in the generated code). 

 

I do not know what else to try. Any full tutorial to create hooks in PS 1.5.6?

 

Thanks.

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