ludojlm Posted February 12, 2019 Share Posted February 12, 2019 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. 1 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