Get categories trail on catalog page
-
16-10-2019 - |
문제
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()
제휴하지 않습니다 magento.stackexchange