Exemple #1
0
 public function onPluginConfiguration(&$elements)
 {
     $ret = parent::onPluginConfiguration($elements);
     $shopConfig = hikaserial::config(false);
     $main_currency = $shopConfig->get('main_currency', 1);
     $currencyClass = hikaserial::get('shop.class.currency');
     $currency = $currencyClass->get($main_currency);
     $this->pluginConfig['currency_rate'][3] = JText::sprintf('POINTS_CONVERSION', $currency->currency_code . ' ' . $currency->currency_symbol);
     return $ret;
 }
Exemple #2
0
 public function onPluginConfiguration(&$elements)
 {
     $ret = parent::onPluginConfiguration($elements);
     if (hikaserial::initShop()) {
         $this->pluginConfig['mode'][2]['hks'] = JText::_('HIKASHOP_USER_POINTS');
     }
     if (hikaserial::initPoints()) {
         $this->pluginConfig['mode'][2]['hkp'] = 'HikaPoints';
     }
     if ($this->getAUP(false)) {
         $this->pluginConfig['mode'][2]['aup'] = 'AlphaUserPoints';
     }
     return $ret;
 }