Jump to content

[Résolu] Récuperer l'identifiant de la catégorie en cours depuis header.tpl

Recommended Posts

Trouvé !!! :)

j'ai ajouté ce code dans le fichier header.php se trouvant à la racine :

if (isset($_GET['id_category']) OR Validate::isUnsignedId($_GET['id_category'])){
   $category = new Category(intval(Tools::getValue('id_category')), intval($cookie->id_lang));
           'id_category' => intval($category->id)

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...