Jose Lazo Posted January 28, 2014 Share Posted January 28, 2014 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. The top menu I need is like this theme (http://themeforest.net/item/erida-responsive-prestashop-theme/full_screen_preview/6588683). 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 servidorInformació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 datosVersión de MySQL: 5.1.66-cll Motor MySQL: InnoDB Prefijo de las tablas: *******_ Configuración la tiendaVersión de PrestaShop: 1.5.6.1 Enlace de su tienda: http://mujeresconarte.com/index.php Tema actual: moat Configuración de emailModo de envío de emails: Utiliza la función email() de PHP Sus datosNavegador 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 More sharing options...
CartExpert.net Posted January 29, 2014 Share Posted January 29, 2014 Hi. You need to transplant the module to that hook and also you need to execute the hook in FrontController.php Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
Jose Lazo Posted January 31, 2014 Author Share Posted January 31, 2014 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 More sharing options...
tozi Posted January 31, 2014 Share Posted January 31, 2014 Jose look here http://www.prestashop.com/forums/topic/2182[spam-filter]create-custom-and-new-hook-in-ps-15/ 1 Link to comment Share on other sites More sharing options...
Jose Lazo Posted January 31, 2014 Author Share Posted January 31, 2014 Ohh great! Thank you very much, Tozi. It was just what I was looking for. I try and I fight with it. Regards! Link to comment Share on other sites More sharing options...
tozi Posted January 31, 2014 Share Posted January 31, 2014 May the force be with you . Post if this helped you. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now