Prestashop-删除客户时的附加代码

问题描述 投票:0回答:2

我想添加与后台管理员删除客户端时应执行的模块之一相关的代码。我该把代码放在哪里?我找不到正确的文件。

Code should be executed after clicking the 'Delete' button

prestashop prestashop-1.6
2个回答
0
投票

使用挂钩hookActionObjectProductDeleteAfter


0
投票

我想在某些自定义模块中,正确的钩子将是hookActionObjectCustomerDeleteAfter。启动代码之前,请不要忘记将模块注册到该挂钩。您可以在模块安装过程中使用代码install]的$this->registerHook('actionObjectCustomerDeleteAfter')方法执行此操作>

© www.soinside.com 2019 - 2024. All rights reserved.