Meric Posted March 5, 2014 Share Posted March 5, 2014 Bonjour, Voici un deuxième problème que je rencontre. Et ne trouve pas de solution. :/ Je souhaite greffer mon module nommé ManuFacturerSlider, en dessous du module Featured products. Avec le "live edit", il m'est impossible de sélectionner le module Fetured products pour pouvoir le remonter. La seule solution que j'ai pu "trouver" est de déplacer le module manufacturedslider dans la partie du footer. J'ai donc rajouté ce bout de code dans le fichier manufacturedslider.php public function hookHome($params) { return $this->hookFooter($params); } Parcontre aucun effet. Le module est toujours "bloqué". Help please. Voici le contenu de manufacturedslider.php <?php if (!defined('_CAN_LOAD_FILES_')) exit; class manufacturerslider extends Module { function __construct() { $this->name = 'manufacturerslider'; $this->tab = 'slideshows'; $this->author = 'BOSS Themes'; $this->version = 1.0; parent::__construct(); $this->displayName = $this->l('Carousel of manufacturer/brand images'); $this->description = $this->l('For Prestashop version 1.5. Displays a carousel of manufacturers/brands images in homepage. www.bossthemes.co.uk'); } function install() { return (parent::install() AND $this->registerHook('Home')); } function hookHome($params) { global $smarty, $link; $smarty->assign(array( 'manufacturers' => Manufacturer::getManufacturers(), 'link' => $link, 'text_list' => Configuration::get('MANUFACTURER_DISPLAY_TEXT'), 'text_list_nb' => Configuration::get('MANUFACTURER_DISPLAY_TEXT_NB'), 'form_list' => Configuration::get('MANUFACTURER_DISPLAY_FORM'), )); return $this->display(__FILE__, 'manufacturerslider.tpl'); return $this->hookFooter($params); } } ?> Link to comment Share on other sites More sharing options...
Szed Posted March 5, 2014 Share Posted March 5, 2014 La fonction hookFooter n'est plus présente dans votre fichier .php ? Ce qui expliquerait que cela ne marche pas. Link to comment Share on other sites More sharing options...
Meric Posted March 5, 2014 Author Share Posted March 5, 2014 Aparemment non. Le contenu n'a jamais été changer. J'ai simplement rajouté la ligne "verte" pour pouvoir le greffer. Avez vous une solution ? Link to comment Share on other sites More sharing options...
Szed Posted March 5, 2014 Share Posted March 5, 2014 La ligne verte est inutile la. Elle appele une fonction qui n'existe pas, et il y à déjà un return à la ligne d'avant. Si vous la supprimer, quand vous tenter de greffer sur hook Home (sans passer par le live Edit) cela vous dis que c'est impossible ? Link to comment Share on other sites More sharing options...
Meric Posted March 5, 2014 Author Share Posted March 5, 2014 Oui, Les deux modules ne sont pas deplacable.. 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