ingleknifeshop Posted January 29, 2014 Share Posted January 29, 2014 I have a error of the block cart. Never came up until i updated. Warning: Function addCSS() is deprecated in /home/xazeznek/public_html/modules/blockcart2/blockcart2.php on line 189in /home/xazeznek/public_html/classes/Tools.php on line 2147Warning: Function getDiscounts() is deprecated in /home/xazeznek/public_html/modules/blockcart2/blockcart2.php on line 88in /home/xazeznek/public_html/classes/Tools.php on line 2147 Running version 1.5.6.2 URL: http://ingleknifeshop.com Link to comment Share on other sites More sharing options...
Dh42 Posted January 29, 2014 Share Posted January 29, 2014 It seems that the blockcart2 module is generating the notice. It is just a notice, so you should be able to turn off error reporting and will be ok. Link to comment Share on other sites More sharing options...
vekia Posted January 29, 2014 Share Posted January 29, 2014 it mean that your module uses deprecated function, it's internal prestashop message (not any kind of error from php etc.) to fix this, instead of Tools::addCSS(); function use function which should be used in 1.5.x releases $this->context->controller->addCSS($this->_path.'style.css', 'all'); 1 Link to comment Share on other sites More sharing options...
NemoPS Posted January 29, 2014 Share Posted January 29, 2014 Also, blockcart 2 is an old module that came with the 1.4 new template. On 1.5 you can use the normal cart 1 Link to comment Share on other sites More sharing options...
ingleknifeshop Posted January 29, 2014 Author Share Posted January 29, 2014 i disabled [Prestashop New Theme] Cart block and it stop showing up. Thanks to both of you. Link to comment Share on other sites More sharing options...
Recommended Posts