문제

For example I'm on boots catalog page: Shoes > Womens > Boots

If I add this code:

$category = Mage::getBlockSingleton('catalog/navigation')->getCurrentCategory();

It'll return only Boots category. How can I get full trail programatically starting from Shoes?

Thank you.

도움이 되었습니까?

해결책

Try looping through the result of

Mage::helper('catalog')->getBreadcrumbPath()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top