Jump to content

I can't add my module's Configuration page to admin menu


Recommended Posts

I've generated a basic skeleton from PS module validator, installed it and now I'm trying to put it's configuration page link to the BO side-menu. I've read the documentation, I went through some threads online but I can't find out what I am doing wrong. This is the code:

class MyCustomModule extends Module
{
    protected $config_form = false;

    public function __construct()
    {
        $this->name = 'mycustommodule';
        $this->tab = 'administration';
        $this->version = '1.0.0';
        $this->author = 'John Doe';
        $this->need_instance = 0;
        $this->tabs = array(
            array(
                'name' => 'My custom module',
                'class_name' => 'AdminMyCustomModule',
                'visible' => true,
                'parent_class_name' => 'AdminCatalog',
        ));

        /**
         * Set $this->bootstrap to true if your module is compliant with bootstrap (PrestaShop 1.6)
         */
        $this->bootstrap = true;

        parent::__construct();

        $this->displayName = $this->l('My Custom Module');
        $this->description = $this->l('Lorem ipsum dolor sit amet.');

        $this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_);
    }
    
    ...
}

 

Of course I've reset the module, even tried uninstalling and installing it again. My new menu tab just doesn't appear.

Thank you.

Edited by TinoArts
Added tag (see edit history)
Link to comment
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...