Jump to content

"Deze module kan niet aan de haak worden gekoppeld. "


RamsesLeroi
 Share

Recommended Posts

ik krijg precies hetzelfde.

 

de functie hookDisplayHome ontrbeekt trouwens niet,

 

er stond al :

	public function hookDisplayHome($params)
	{
		$category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id);
		$nb = (int)(Configuration::get('HOME_FEATURED_NBR'));
		$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10));

		$this->smarty->assign(array(
			'products' => $products,
			'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
			'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
		));

Weet je zeker dat jou code klopt, er staat namelijk return $this->hookRightColumn($params);

Share this post


Link to post
Share on other sites

ik krijg precies hetzelfde.

 

de functie hookDisplayHome ontrbeekt trouwens niet,

 

er stond al :

	public function hookDisplayHome($params)
	{
		$category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id);
		$nb = (int)(Configuration::get('HOME_FEATURED_NBR'));
		$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10));

		$this->smarty->assign(array(
			'products' => $products,
			'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
			'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
		));

Weet je zeker dat jou code klopt, er staat namelijk return $this->hookRightColumn($params);

Wat is de versie van Prestashop en van de module die je gebruikt?

Share this post


Link to post
Share on other sites

  • 3 weeks later...
  • 8 months later...
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More