radhaumashankar Posted August 1, 2017 Share Posted August 1, 2017 (edited) hi guys, public static function getCategoryName($id){$category = new Category ($id,Context::getContext()->language->id);return $category->name;} through this code in controller.php , i managed to display the category name by specific id. but how to modify it to display even sub categories in it. i also want it to link to category page. any additions to this . Edited August 2, 2017 by radhaumashankar (see edit history) Link to comment Share on other sites More sharing options...
radhaumashankar Posted August 2, 2017 Author Share Posted August 2, 2017 sorry i am not coder how to print each sub categories with the link to its category page 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