Jump to content

PrestaShop 1.6 custom module not showing in Front Office


Recommended Posts

i cannot see my module in front-office.

 

this is my code:

 

<?php
if (!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

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...