Пример #1
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $result['target'] = \XLite\Core\Request::getInstance()->target;
     $result['action'] = 'modify';
     return $result;
 }
Пример #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;
 }
Пример #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;
 }
Пример #4
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $url = $this->getReturnURL();
     if ($url) {
         $result['returnURL'] = $url;
     }
     return $result;
 }
Пример #5
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $profileId = $this->getCurrentForm()->getRequestProfileId();
     if ($profileId) {
         $result['profile_id'] = $profileId;
     }
     return $result;
 }
Пример #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;
 }
Пример #7
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $orderNumber = $this->getOrder()->getOrderNumber();
     if ($orderNumber) {
         $result['order_number'] = $orderNumber;
     }
     return $result;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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));
 }
Пример #11
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('mode' => 'search');
 }
Пример #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;
 }
Пример #13
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list['zone_id'] = $this->getZoneId();
     return $list;
 }
Пример #14
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     return $list;
 }
Пример #15
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('product_id' => \XLite\Core\Request::getInstance()->product_id);
 }
Пример #16
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('profileId' => $this->getCondition('profileId'));
 }
Пример #17
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list['widget'] = 'XLite\\Module\\XC\\PitneyBowes\\View\\CredentialsRequest';
     return $list;
 }
Пример #18
0
 /**
  * Get default params
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $result = parent::getDefaultParams();
     $result['category_id'] = $this->getCategory()->getCategoryId();
     return $result;
 }