_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', [ 'label' => 'Cancel', 'attribs' => [ 'class' => 'btn', 'onclick' => "window.location.href = '" . htmlspecialchars($this->getCancelUrl()) . "';", 'helper' => 'formInputButton', ], ] ); $this->addElement( 'submit', 'btnSubmit', [ 'label' => 'Proceed to the Next Step >', 'attribs' => ['class' => 'btn btn-primary'], ] ); $this->addDisplayGroup(['btnCancel', 'btnSubmit'], 'submitGroup'); return $this; } }