我是PrestaShop的初学者,请尝试编写一个简单的模块。
我当然使用了官方文档:https://devdocs.prestashop.com/1.7/modules/creation/
正如标题所述,我有问题,我的模块未出现在“ Facebook和社交网络”类别中,并且始终归为“其他”
我在$this->tab = 'social_networks';
函数中使用了__construct()
作为文档说明。
但是您会看到更多的构造:
public function __construct()
{
$this->name = 'myplugin';
$this->tab = 'social_networks';
$this->version = '1.0.0';
$this->author = 'Daniel';
$this->need_instance = 1;
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('My Plugin');
$this->description = $this->l(
'Lorem Ipsum'
);
$this->ps_versions_compliancy = array('min' => '1.6','max' => _PS_VERSION_);
require_once('src' . DIRECTORY_SEPARATOR . 'bootstrap.php');
$this->configuration = $this->getconfiguration();
}
您有什么想法我做错了吗?
如果有必要,我可以使用 PrestaShop 1.7.5.2
感谢您的时间!
最好的