Jump to content

How to display subcategories names from categorie PHP SOLVED


MFLM

Recommended Posts

Hi all

 

I really like to know, How I can display the subcategories names from a category in one array.

 

Example:

 

CATEGORIE 

  • SUBCATEGORIE1
  • SUBCATEGORIE2

 

I have a CATEGORIE, and I need to show SUBCATEGORIE1 and SUBCATEGORIE2 like 

Names:"SUBCATEGORIE1 ,SUBCATEGORIE2"

 

That in PHP code.

 

I think is of one class from Category.php

 

Thanks

 

 

I solved this with a query

 

SELECT cl.name FROM `ps_category`c LEFT JOIN `ps_category_lang`cl ON (c.`id_category` = cl.`id_category`AND `id_lang` = 1) WHERE c.`id_parent` =3  AND cl.`id_shop` =19

Edited by MFLM (see edit history)
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...