dawb Posted September 22, 2011 Share Posted September 22, 2011 Hi, I am looking to create a page that lists all of the sites top level categories. I have tried making a page that uses the homeCategories module php code but this is limited by the number of categories specified in the admin section. Are there any tutorials about making custom tpl and php function pages. I have had a search but cannot seem to find any on the site. I simply want to pull all of the categories from the site and display them in a list similar to how the products already are on a seperate page called categories.php for example. Any help would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
CartExpert.net Posted September 22, 2011 Share Posted September 22, 2011 Hi! Create an instance of 'category' class, with the ID of home category. Then you can use the 'getSubCategories' functions to get the categories. $home_cat = new Category(1, $cookie->id_lang); $all_categories = $home_cat->getSubCategories($cookie->id_lang); Link to comment Share on other sites More sharing options...
dawb Posted September 25, 2011 Author Share Posted September 25, 2011 Thanks for the quick response, managed to get it working with that.Cheers 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