helper('onestepcheckout')->isRewriteCheckoutLinksEnabled()){ return parent::addCheckoutLink(); } if (!$this->helper('checkout')->canOnepageCheckout()) { return $this; } if ($parentBlock = $this->getParentBlock()) { $text = $this->__('Checkout'); $parentBlock->addLink($text, 'onestepcheckout', $text, true, array('_secure'=>true), 60, null, 'class="top-link-onestepcheckout"'); } return $this; } }