Jump to content

Module on prestashop 1.4


lolalola

Recommended Posts

With prestashop 1.3 everything work fine, but when insert in Prestashop 1.4 this module do not see in admin panel.
Why? Whats change with modules in Prestashop 1.4?

Thanks

<?php
class Fashion extends Module
{
   function __construct()
   {
       $this->name = 'fashion';
       $this->tab = 'front_office_features';
       $this->version = 1.0;

       parent::__construct();

       $this->page = basename(__FILE__, '.php');
       $this->displayName = $this->l('Block Fashion');
       $this->description = $this->l('Add a fashion block');
   }

   function install()
   {
       if (!parent::install())
           return false;

       if(!$this->registerHook('leftColumn'))
           return false;

       return true;
   }

   function hookLeftColumn($params)
   {
       return $this->display(__FILE__, 'fashion.tpl');
   }
}
?>

Link to comment
Share on other sites

  • 3 weeks later...

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