سؤال

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