2 godziny temu, Peter_17 napisał:Thanks for help.
The hook actionProductDeleteAfter is not called after product deletion. This is the same situation as with hooks:
actionAdminDeleteAfter
actionAdminDeleteBefore
actionAdminProductsControllerDeleteAfter
actionAdminProductsControllerDeleteBefore
and
actionAdminProductDeleteAfterI checked that I can use other hooks like actionCategoryUpdate, actionListModules, actionAdminDuplicateAfter.
For example the function hookActionCategoryUpdate is called correctly and json file is written to the directory.I tested it on the local installation and on the hosting configured for Prestashop.
Are you sure its registered correctly? Because Object hooks are allways called after save,add,delete action.
Edit:
Here is proper way, i'm using it myself but on PS 1.7.8
public function hookactionObjectProductDeleteBefore($params){