Magento get current category details
Magento get current category details Magento get current category details : We are going to cover all details about the current category such as category name, category id, category url etc. Here are the things which we will cover in this tutorial. Id Name Url Description Level Image Url Thumbnail Image Url Product Collection
Magento get current category Details There are followings conditions to get category details
1 – You want to get current selected category detail. 2 – Or You want load category detail by Category Id.
Let us start with above both conditions – First get Current Category Id.
Magento get current category Id
Magento Load Category By Id Now we will use the above category id to load category details and other information-
Now you can get category details such as name, url etc. Magento get category Name By Category Id
Magento get category Url By Category Id
Magento get category Description By Category Id
Magento get category Level By Category Id
Magento get category Image Url By Category Id
Magento get category Thumbnail Image Url By Category Id
Magento Load Category Products Collection If you want to load products in individual category by id you can get all products as below .
Magento Load Category Products Collection By Category Id
The above example will load all products of the category.
Source:- http://tutorialsplane.com/magento-get-current-category-details/ for more ppts click here