Jump to content

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


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);

Link to comment
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?

Link to comment
Share on other sites

  • 3 weeks later...
  • 8 months later...
×
×
  • Create New...