Jump to content

Featured products carousel on PS 1.4.4.1


Recommended Posts

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

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
×
×
  • Create New...