/** * Defines JS files for widget * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = 'modules/CDev/Paypal/items_list/payment/methods/controller.js'; $api = \XLite\Module\CDev\Paypal\Main::getRESTAPIInstance(); if ($api->isInContextSignUpAvailable()) { $list[] = 'modules/CDev/Paypal/settings/signup.js'; } return $list; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $cnd = parent::getSearchCondition(); $cnd->{\XLite\Model\Repo\Payment\Method::P_TYPE} = array(\XLite\Model\Payment\Method::TYPE_ALLINONE, \XLite\Model\Payment\Method::TYPE_CC_GATEWAY); return $cnd; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $cnd = parent::getSearchCondition(); $cnd->{\XLite\Model\Repo\Payment\Method::P_ONLY_MODULE_OFFLINE} = true; return $cnd; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $cnd = parent::getSearchCondition(); $cnd->{\XLite\Model\Repo\Payment\Method::P_TYPE} = \XLite\Model\Payment\Method::TYPE_ALTERNATIVE; return $cnd; }