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