我想将模块"blockviewed"移植到hook displayFooterProduct。
Prestashop告诉我这个模块不能移植到那个钩子上,所以我环顾四周,找到了这个教程: http://docs.promokit.eu/doku.php/prestashophelp:hookmodule
它出来了,我必须在块视图.php文件中添加一些代码。
我尽力了,并在最后添加了这段代码。
public function hookdisplayFooterProduct($params) {
return $this->hookdisplayHeader('displayFooterProduct');
它不起作用并且使我的后台崩溃,难怪我没有完全掌握我应该放入该代码的内容。
你能指出我做错了什么吗?
谢谢!
它hookDisplayFooterProduct
不是hookdisplayFooterProduct
,你应该使用 hookRightColumn
而不是 hookdisplayHeader
(正确hookDisplayHeader
):
public function hookDisplayFooterProduct($params)
{
return $this->hookRightColumn($params);
}