_initShippingFields(); $this->_initPaymentFields(); return $this; } /** * @return App_ECommerce_Cart_Obj */ protected function _getCart() { if (null === $this->_cart) { $this->_cart = new App_ECommerce_Cart_Admin_Obj(); $this->_cart->setPrimaryKey($this->_cart->getCartIdByTransaction($this->_getData('id'))); } return $this->_cart; } protected function _initButtons() { $this->addElement( 'submit', 'btnCancel', array( 'label' => 'Cancel', 'attribs' => array( 'class' => 'btn', 'onclick' => "window.location.href = '" . htmlspecialchars($this->getCancelUrl()) . "';", 'helper' => 'formInputButton', ), ) ); $this->addElement( 'submit', 'btnSubmit', array( 'label' => 'Proceed to the Next Step >', 'attribs' => array('class' => 'btn btn-primary'), ) ); $this->addDisplayGroup(array('btnCancel', 'btnSubmit'), 'submitGroup'); return $this; } }