Promokit Posted February 9, 2012 Share Posted February 9, 2012 Could it possible to add script and css files to the PrestaShop backoffice? Need for decoration module settings page. Thanks in advance Link to comment Share on other sites More sharing options...
Raphaël Malié Posted February 9, 2012 Share Posted February 9, 2012 For which PrestaShop version ? Link to comment Share on other sites More sharing options...
Promokit Posted February 9, 2012 Author Share Posted February 9, 2012 1.5 Link to comment Share on other sites More sharing options...
Raphaël Malié Posted February 9, 2012 Share Posted February 9, 2012 You can add JS and CSS with these functions : $this->context->controller->addCSS(); $this->context->controller->addJS(); Regards Link to comment Share on other sites More sharing options...
Promokit Posted February 9, 2012 Author Share Posted February 9, 2012 This functions uses for adding scripts and css file into the back office? If right, in which function in the module php file I need to use this functions? Thanks Link to comment Share on other sites More sharing options...
Raphaël Malié Posted February 9, 2012 Share Posted February 9, 2012 You only want to improve the design of your module on its configuration page (in module tab) ? If so, you have to use it in the getContent() method. Regards Link to comment Share on other sites More sharing options...
Recommended Posts