dimanche 14 juin 2015

Problem installing a prestashop module

You created a module and you get an error message when installing it, try to call your hooks register after the parent::install method
 
if (!parent::install())
return false;
 
Try to put this code at the beginning of the install function, if it doesn't solve your problem, try to debug your hook functions  and see if thay returns false, in this case, you shouldd correct the errors in those functions, To debug, you can use var_dump function

For example:

var_dump($this->registerHook('leftColumn'));exit;

1 commentaire :