Jump to content

Edit History

dooopa234

dooopa234


Update to current state

I'm using Prestashop 1.7.5.2.
This is my code:

<?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();
    }
}
?>

File is named plugin.php and is located in /modules/plugin.

When I open module manager, the module does not appear. In any category.

What am I missing?

dooopa234

dooopa234

I'm using Prestashop 1.7.5.2.
This is my code:

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

class plugin1234567890 extends Module {
    public function __construct()
    {
        $this->name = 'plugin1234567890';
        $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();
    }
}
?>

File is named plugin1234567890.php and is located in /modules/plugin1234567890.

When I open module manager, the module does not appear. In any category.

What am I missing?

×
×
  • Create New...