MatthieuMar Posted February 24, 2023 Share Posted February 24, 2023 Bonjour, je recherche une astuce simple pour effectuer une requête SQL depuis la table ps_category afin d'extraire des catégories disposant de catégories. Je pense avoir une piste en me servant de la position mais je ne sais comment ignorer la dernière position rencontrée. Merci d'avance ^^. Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 24, 2023 Share Posted February 24, 2023 Bonjour, La classe Category propose cela. Category::hasChildren($idParent, $idLang, $active = true, $idShop = false) Si vous voulez passer obligatoirement par une requête SQL regardez comment est fait le code pour vous en inspirer. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now