Merge pull request #646 from kpodemski/patch-2
[*] CORE : Get instance of current category in category controller
This commit is contained in:
@@ -205,5 +205,13 @@ class CategoryControllerCore extends FrontController
|
|||||||
|
|
||||||
$this->context->smarty->assign('nb_products', $this->nbProducts);
|
$this->context->smarty->assign('nb_products', $this->nbProducts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get instance of current category
|
||||||
|
*/
|
||||||
|
public function getCategory()
|
||||||
|
{
|
||||||
|
return $this->category;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user