Salut, pourquoi ne pas virer l'enregistrement du hook dans la fonction d install ? ps_featuredproducts.php
public function install()
{
$this->_clearCache('*');
Configuration::updateValue('HOME_FEATURED_NBR', 8);
Configuration::updateValue('HOME_FEATURED_CAT', (int) Context::getContext()->shop->getCategory());
Configuration::updateValue('HOME_FEATURED_RANDOMIZE', false);
return parent::install()
&& $this->registerHook('addproduct')
&& $this->registerHook('updateproduct')
&& $this->registerHook('deleteproduct')
&& $this->registerHook('categoryUpdate')
// on vire --> && $this->registerHook('displayHome')
&& $this->registerHook('displayOrderConfirmation2')
&& $this->registerHook('displayCrossSellingShoppingCart')
&& $this->registerHook('actionAdminGroupsControllerSaveAfter')
;
}
cordialement