[英]Prestashop - Add module to hook
我想将模块“ blockviewed”移植到钩子displayFooterProduct。
Prestashop告诉我该模块无法移植到该挂钩上,因此我环顾四周并找到了本教程: http : //docs.promokit.eu/doku.php/prestashophelp : hookmodule
结果出来了,我必须在blockviewed.php文件中添加一些代码。
我已尽力并在最后添加了此代码。
public function hookdisplayFooterProduct($params) {
return $this->hookdisplayHeader('displayFooterProduct');
它无法正常工作并使我的backOffice崩溃,这也就不足为奇了,因为我没有完全掌握应在该代码中添加的内容。
你能指出我做错了什么吗?
谢谢!
它是hookDisplayFooterProduct
而不是hookdisplayFooterProduct
,您应该使用hookRightColumn
而不是hookdisplayHeader
(正确地是hookDisplayHeader
):
public function hookDisplayFooterProduct($params)
{
return $this->hookRightColumn($params);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.