Amjath.com

Main menu

  • About Me
  • Blogroll
  • Contact Me

Monthly Archives: May 2012

May 25 2012
0
comments

Get Current Category Id in Magento

Use the below code to get the current category id category ID in magento echo Mage::getModel('catalog/layer')->getCurrentCategory()->getId(); Cheers! Amjath

Read More
Posted in: Magento |
May 25 2012
5
comments

Get Category Url from ID in Magento

Use the below code to get the category url from the category ID in magento $category_id = 14; Mage::getModel("catalog/category")->load($category_id)->getUrl(); Cheers! Amjath

Read More
Posted in: Magento |

Recent Posts

  • Unable to Reindex / Indexes stuck at Processing in Magento
  • Magento Reindex from shell
  • Check whether a module is enabled or not in Magento
  • Get Cart Items in Magento
  • Get subtotal and grand total in Magento

Archives

  • September 2015
  • November 2013
  • February 2013
  • June 2012
  • May 2012
  • March 2012
  • February 2011
  • August 2010
  • April 2010
  • February 2010
  • January 2010
  • September 2009
  • August 2009

Categories

  • Magento
Powered by WordPress and Miro WP Theme