kriki Posted June 12, 2017 Share Posted June 12, 2017 i cannot see my module in front-office. this is my code: <?phpif (!defined('_PS_VERSION_')) exit;class ModuleCarte extends Module{ function __construct() { $this->name = 'modulecarte'; $this->tab = 'front_office_features'; $this->version = 0.1; $this->displayName = $this->l('Module de carte cadeaux'); $this->description = $this->l('Module carte cadeaux pour plusieurs enseignes'); $this->author = 'Cristelle Makuate'; parent::__construct(); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); if (!Configuration::get('MYMODULE_NAME')) $this->warning = $this->l('No name provided'); } public function install() {if (Shop::isFeatureActive()) Shop::setContext(Shop::CONTEXT_ALL); if (!parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('header') || !Configuration::updateValue('MYMODULE_NAME', 'my friend') ) return false; return true; } public function uninstall() { if (!parent::uninstall() || !Configuration::deleteByName('MYMODULE_NAME') ) return false; return true;}}?> the file contaning that code is called modulecarte.php and is located in a folder called "modulecarte" thank you for answering me. 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