Jump to content

Get associated groups to a category


Recommended Posts

Hello !

I need to get the id of associated groups of subcategories in the template/catalog/listing/catalog.tpl
I found a function in the Category model : getGroups(). Problem is, I need an object to use it, and my subcategories are arrays(). I tried to use $subcategory = new Category($subcat.id_category), with no success (I get this error : "{$subcateogry= new Category((int) $subcat.id_category)}" unknown function 'Category'.)

How can I get the associated groups ? Thanks a lot.

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