【问题标题】:Prestashop module not showing in the listPrestashop 模块未显示在列表中
【发布时间】:2019-03-15 20:52:58
【问题描述】:

我正在使用 Prestashop 1.7.5.2。
这是我的代码:

<?php
if (!defined('_PS_VERSION_')) {
    exit;
}

class plugin extends Module {
    public function __construct()
    {
        $this->name = 'plugin';
        $this->tab = 'front_office_features';
        $this->version = 1.0;
        $this->author = 'Firstname Lastname';
        $this->need_instance = 1;


        $this->displayName = $this->l('Module');
        $this->description = $this->l('ASDFGHJKL');
        parent::__construct();
    }

    public function install()
    {
        if (parent::install() == false) {
            return false;
        }
        return true;
    }
    public function uninstall()
    {
        if (!parent::uninstall()) {
            Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'mymodule`');
        }
        parent::uninstall();
    }
}
?>

文件名为plugin.php,位于/modules/plugin。

当我打开模块管理器时,模块没有出现。在任何类别。

我错过了什么?

【问题讨论】:

  • 您使用的是哪个 prestashop 版本?
  • 更新了问题@TheDrot

标签: php prestashop


【解决方案1】:

解决了。请记住,您需要在模块->模块->模块目录下实际安装插件并点击安装

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多