lolalola Posted May 30, 2011 Share Posted May 30, 2011 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 More sharing options...
Truemedia Posted May 30, 2011 Share Posted May 30, 2011 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). Link to comment Share on other sites More sharing options...
lolalola Posted May 31, 2011 Author Share Posted May 31, 2011 But i have read, this isn't required. This is not true? Link to comment Share on other sites More sharing options...
Truemedia Posted June 1, 2011 Share Posted June 1, 2011 It fixed my problem, unless there was something wrong with your original code. Link to comment Share on other sites More sharing options...
GrzegorzZ Posted June 20, 2011 Share Posted June 20, 2011 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) 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