Aucun résultat
Il n'y a pas d'objets correspondant à votre recherche... Vérifiez que l'orthographe des mots est correcte ou élargissez votre recherche pour obtenir des résultats !
Hi there,
I would like to implement a function to get a category name given the category ID.
First of all I do not understand why I need to specify a Parent ID insteand of the Category ID (honestly I do not understand)
But the main problem I have is that the call retiurn the same content (void) if I set the ID of a leaf Category (eg. 710) of if I set the ID of a non existent category (eg. 21159)
IMHO this is a bug.
Hi Daniele
the solution is to retrieve the full category list with the call Lien (https)
You receive back the master category id and name. you can record this data on a database table
the you can navigate into parents by passing the parentid "&idParent=xxxx"
with these calls you can retrieve the full category three (6 levels or less depending on the master category) with id ad name et voilà you have id and name for all cat/subcat. Record these data into the same table and then you can access to any category name by category id
Thank you Roberto for the answer.
You suggestion is good to retrieve the full category tree and store it into a DB.
Unfortunately it does not answer my problem.
Daniele
Indeed, the "category" call does not return the detail of the category passed in parameter but only its children.
We note your remark to improve the behavior of this one.
Currently, the solution proposed by "Servitel" is correct and I think you should use this logic for your development.
Here is an example where you can retrieve the children of a parent category in the desired language: Lien (https)
You can also consult this list here to find the necessary information that you need: Lien (https)
Ce sujet datant de plus de 6 mois, il n'est plus possible d'y répondre.
Paramètres des cookies
Information concernant les cookies
Notre site utilise des cookies pour les finalités suivantes : vous fournir les services demandés, assurer la sécurité sur notre plateforme, garder en mémoire vos préférences afin de rendre votre navigation plus agréable, réaliser des statistiques dans le but d’adapter notre site à vos besoins, afficher des vidéos et vous permettre de partager du contenu sur les réseaux sociaux.
Certains de ces cookies sont nécessaires au fonctionnement de notre site, d’autres peuvent être paramétrés selon vos préférences.
En savoir plus