Exemple #1
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $result['target'] = \XLite\Core\Request::getInstance()->target;
     $result['action'] = 'modify';
     return $result;
 }
Exemple #2
0
 /**
  * Return list of the form default parameters
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $params = parent::getDefaultParams();
     $params['order_id'] = $this->getOrder()->getOrderId();
     // get order ID (from controller)
     return $params;
 }
Exemple #3
0
 /**
  * Return list of the form default parameters
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list['atype'] = \XLite\Core\Request::getInstance()->atype;
     $list['addressId'] = $this->getCurrentAddressId();
     return $list;
 }
Exemple #4
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $url = $this->getReturnURL();
     if ($url) {
         $result['returnURL'] = $url;
     }
     return $result;
 }
Exemple #5
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $profileId = $this->getCurrentForm()->getRequestProfileId();
     if ($profileId) {
         $result['profile_id'] = $profileId;
     }
     return $result;
 }
Exemple #6
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list['method_id'] = $this->getPaymentMethodId();
     if (\XLite\Core\Request::getInstance()->just_added) {
         $list['just_added'] = 1;
     }
     return $list;
 }
Exemple #7
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $orderNumber = $this->getOrder()->getOrderNumber();
     if ($orderNumber) {
         $result['order_number'] = $orderNumber;
     }
     return $result;
 }
Exemple #8
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $addressId = $this->getCurrentForm()->getRequestAddressId();
     if ($addressId) {
         $result['address_id'] = $addressId;
     } else {
         $profileId = $this->getCurrentForm()->getRequestProfileId();
         if ($profileId) {
             $result['profile_id'] = $profileId;
         }
     }
     $result[\XLite\Controller\AController::RETURN_URL] = $this->buildURL('address_book');
     return $result;
 }
Exemple #9
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $result['target'] = \XLite\Core\Request::getInstance()->target;
     $result['action'] = 'save';
     $addressId = $this->getCurrentForm()->getRequestAddressId();
     if ($addressId) {
         $result['address_id'] = $addressId;
     } else {
         $profileId = $this->getCurrentForm()->getRequestProfileId();
         if ($profileId) {
             $result['profile_id'] = $profileId;
         }
     }
     return $result;
 }
Exemple #10
0
 /**
  * Return list of the form default parameters
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return array_merge(parent::getDefaultParams(), array(\XLite\View\Pager\Admin\Module\AModule::PARAM_CLEAR_PAGER => 1));
 }
Exemple #11
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('mode' => 'search');
 }
Exemple #12
0
 /**
  * Return list of the form default parameters
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $result['order_id'] = $this->getCurrentForm()->getOrderId();
     return $result;
 }
Exemple #13
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list['zone_id'] = $this->getZoneId();
     return $list;
 }
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     return $list;
 }
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('product_id' => \XLite\Core\Request::getInstance()->product_id);
 }
Exemple #16
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('profileId' => $this->getCondition('profileId'));
 }
Exemple #17
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list['widget'] = 'XLite\\Module\\XC\\PitneyBowes\\View\\CredentialsRequest';
     return $list;
 }
Exemple #18
0
 /**
  * Get default params
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $result['category_id'] = $this->getCategory()->getCategoryId();
     return $result;
 }