hpiontek Posted May 16, 2012 Share Posted May 16, 2012 Hi, I've tried to get 'Featured products carousel for PrestaShop 1.5' going on my PS 1.4.4.1 but it raises an error: Fatal error: Class 'Context' not found in modules/featuredProductsSlider/featuredProductsSlider.php on line 82 Seems to be something in the red line: public function hookDisplayHome($params) { $category = new Category(Context::getContext()->shop->getCategory(), Configuration::get('PS_LANG_DEFAULT')); $nb = (int)(Configuration::get('HOME_FEATURED_NBR')); $products = $category->getProducts($params['cookie']->id_lang, 1, ($nb ? $nb : 10)); $this->smarty->assign(array( 'featuredProducts' => $products )); return $this->display(__FILE__, 'featuredProductsSlider.tpl'); } As I'm not a coding expert I hope someone can help me on getting this going on my shop. Thanks in advance, HP Link to comment Share on other sites More sharing options...
Christian Lescuyer Posted May 18, 2012 Share Posted May 18, 2012 (edited) This module is for version 1.5, it won't work on 1.4 shops (without a lot of coding). Edited May 18, 2012 by Christian Lescuyer (see edit history) 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