/** * Add shopping cart link to parent block * * @return Mage_Checkout_Block_Links */ public function addCartLink() { if (!$this->_checkRule() || $this->helper('aitcheckout')->isDisabled() || !$this->helper('aitcheckout')->isShowCartInCheckout()) { return parent::addCartLink(); } return $this; }
/** * Add shopping cart link to parent block * * @return Mage_Checkout_Block_Links */ public function addCartLink() { $count = $this->getSummaryQty() ? $this->getSummaryQty() : $this->helper('checkout/cart')->getSummaryCount(); if ($count) { return parent::addCartLink(); } return $this; }