Jump to content

My module is not visible in the module list


Recommended Posts

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?

Edited by dooopa234
Update to current state (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Out of that there is possibility (usually on development stage) that you have some error so the module is being displayed only in directory name.

So if you look for "Module name" instead of "my_module" it's also one occasion where you won't find it. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More