starfiko Posted November 19, 2013 Share Posted November 19, 2013 Bonjour, Je suis novice sur prestashop donc soyer indulgent. Je cherche à créer un onglet dans le prestashop admin lors de l'installation d'un module. Pour se faire le fichier principale du module débute par ceci : class Moi extends Module{ function __construct() { $this->name = 'Moi'; $this->tab = 'toi'; $this->version = 1.5; parent::__construct(); $this->displayName = $this->l('Moi'); $this->description = $this->l('create Moi.'); $this->confirmUninstall = $this->l('Are you sure you want to delete all your Moi?'); $this->author = 'PrestaShop'; $this->error = false; $this->valid = false; } public function install() { //Creation de l'onglet parent rang 0 $parent_tab = new Tab(); $parent_tab->name[$this->context->language->id] = $this->l('Moi support'); $parent_tab->class_name = 'Vous'; $parent_tab->id_parent = 0; $parent_tab->module = $this->name; $parent_tab->add(); if(!parent::install()) return false; return true; } Si vous avez de bon topic ou ton simplement me dire les étape à suivre. Merci!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now