addElement('textarea', 'userAdditionalNote', array('label' => 'Additional Notes for the Order')); $this->addDisplayGroup(array('userAdditionalNote'), 'noteGroup'); return $this; } protected function _initButtons() { if (!$this->_hasButtons) { return $this; } $this->addElement( 'submit', 'btnSubmit', array('label' => 'Submit Order', 'attribs' => array('class' => 'btn btn-primary')) ); /** @var Qs_Form_Decorator_ViewHelper $viewHelper */ $viewHelper = $this->getElement('btnSubmit')->getDecorator('ViewHelper'); $viewHelper->setAdditionalHtmlAfterElement($this->_renderModifyLink()); $this->addDisplayGroup(array('btnSubmit'), 'submitGroup'); return $this; } protected function _renderModifyLink() { $url = Qs_SiteMap::findFirst(null, array('type' => 'ECommerce_Cart_'), array('type' => 'default'), 'url'); $html = 'Modify Order'; return $html; } }