26 public static function check($params, array $restrictionParams, $serviceId = 0)
28 if (isset($restrictionParams) && is_array($restrictionParams[
'CURRENCY']))
29 return in_array($params, $restrictionParams[
'CURRENCY']);
44 $collection = $entity->getCollection();
47 $order = $collection->getOrder();
49 return $order->getCurrency();
51 elseif ($entity instanceof
Order)
53 return $entity->getCurrency();
77 return Loc::getMessage(
'SALE_PS_RESTRICTIONS_BY_CURRENCY_ON_APPLY_ERROR_MSG');
82 $data = PaySystem\Manager::getById($entityId);
84 $currencyList = CurrencyManager::getCurrencyList();
89 $paySystem =
new Service($data);
90 $psCurrency = $paySystem->getCurrency();
93 foreach ($psCurrency as $code)
94 $options[$code] = (isset($currencyList[$code])) ? $currencyList[$code] : $code;
103 "OPTIONS" => $options
112 public static function save(array $fields, $restrictionId = 0)
114 return parent::save($fields, $restrictionId);
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)