Php Prestashop-将模块添加到挂钩
我想将模块“blockview”移植到hook产品中 Prestashop告诉我这个模块不能移植到那个钩子上,所以我四处看看,发现了这个教程: 结果出来了,我必须在blockviewsed.php文件中添加一些代码 我尽了最大努力,最后添加了这段代码Php Prestashop-将模块添加到挂钩,php,module,hook,prestashop,Php,Module,Hook,Prestashop,我想将模块“blockview”移植到hook产品中 Prestashop告诉我这个模块不能移植到那个钩子上,所以我四处看看,发现了这个教程: 结果出来了,我必须在blockviewsed.php文件中添加一些代码 我尽了最大努力,最后添加了这段代码 public function hookdisplayFooterProduct($params) { return $this->hookdisplayHeader('displayFooterProduct'); 它不起作用并使
public function hookdisplayFooterProduct($params) {
return $this->hookdisplayHeader('displayFooterProduct');
它不起作用并使我的后台崩溃,难怪我没有完全掌握应该在代码中输入什么
你能指出我做错了什么吗
谢谢 它是
hookDisplayFooterProduct
而不是hookDisplayFooterProduct
,您应该使用hookRightColumn
而不是hookdisplayHeader
(正确的hookdisplayHeader
):
谢谢,它很有魅力。在这个社区找到支持总是很好;)
public function hookDisplayFooterProduct($params)
{
return $this->hookRightColumn($params);
}