short but sweet

Monday, 13 May 2013

Get the current category/product/cms page in Magento


<?php
$currentCategory = Mage::registry('current_category');
$currentProduct = Mage::registry('current_product');
$currentCmsPage = Mage::registry('cms_page');
?>
Posted by krupa at 06:29
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2019 (1)
    • ►  January (1)
  • ►  2017 (4)
    • ►  August (3)
    • ►  June (1)
  • ►  2016 (1)
    • ►  September (1)
  • ►  2014 (5)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  May (1)
  • ▼  2013 (18)
    • ►  October (3)
    • ►  September (1)
    • ►  July (3)
    • ►  June (4)
    • ▼  May (7)
      • Add wysiwyg editor in custom magento module.
      • Magento : Login/Logout Code in Header
      • Magento Forms: Prototype Javascript Validation In...
      • Get the current category/product/cms page in Magento
      • Get Product Collection by Product Type in Magento
      • Join custom table to product collection in magento
      • Add tracking no in shipment in magento through script
  • ►  2012 (2)
    • ►  April (2)

About Me

krupa
View my complete profile
Watermark theme. Powered by Blogger.