Jump to content

Module on prestashop 1.4


lolalola
 Share

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');
   }
}
?>

Share this post


Link to post
Share on other sites

You need an XML file now inside the module folder called config.xml which has simillar settings but is how PrestaShop 1.4 loads the information (They've used XSLT instead of php for rendering I think to cut load time).

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Unfortuneatly, for me my presta does not read config.xml files. Info in my xml is different than in module, and PS shows one from class properties not xml. Any reason why? (would be cool if module page loaded faster)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More