Skip to content

Instantly share code, notes, and snippets.

@hannesme
Created January 22, 2013 11:37
Show Gist options
  • Save hannesme/4593963 to your computer and use it in GitHub Desktop.
Save hannesme/4593963 to your computer and use it in GitHub Desktop.
Magento: Get Products Category Path (for example for tracking stuff)
you can use this in your templae:
Mage::helper('catalog')->getBreadcrumbPath();
Warning: Function returns multidimensional array, not string as noted! So you have to loop a little bit...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment