Showing posts with label Magento Breadcrumbs on Shopping Cart Page. Show all posts
Showing posts with label Magento Breadcrumbs on Shopping Cart Page. Show all posts

Thursday, 2 April 2015

Add Breadcrumbs on Shopping Cart Page Magento


Add Breadcrumbs on Shopping Cart Page Magento

Open app/code/core/Mage/Checkout/Block/Cart.php and add follwing function.

public function _prepareLayout()
{
  if ($breadcrumbs = $this->getLayout()->getBlock('breadcrumbs'))
  {
     $breadcrumbs->addCrumb('home', array('label'=>__('Home'), 'title'=>__('Go to Home Page'), 'link'=>Mage::getBaseUrl()));
     $breadcrumbs->addCrumb('cart', array('label'=>'Cart', 'title'=>'Cart'));
  }
}