在产品管理页面中添加新选项卡,如Prestashop 1.5.3版中的功能选项卡,属性选项卡等

时间:2013-04-08 07:30:48

标签: php module e-commerce prestashop

我想在PS版1.5.x中的“功能选项卡”,“属性”选项卡等产品管理页面中添加一个新选项卡,其中包含自定义模块。 我将此标签添加到产品编辑页面,以便我可以添加选项以将产品视频上传到管理员。

以下是我想要实现的截图:

enter image description here

修改

我在这里找到了一个解决方案:http://blog.belvg.com/how-to-create-a-custom-product-tab-in-prestashop.html

1 个答案:

答案 0 :(得分:7)

您需要创建一个挂钩到displayAdminProductsExtra的模块。

displayAdminProductsExtra - 这是其他产品标签的钩子,

在您的模块中,您必须在安装功能中注册此挂钩:

!$this->registerHook('displayAdminProductsExtra')

然后你必须用这个钩创建函数:

    public function hookDisplayAdminProductsExtra($params) {
     return $this->display(__FILE__, 'tab-body.tpl');
}

这就是全部..