Fix #62 . Thanks @moryoav
This commit is contained in:
parent
55356ace73
commit
8ec095d9d6
@ -77,8 +77,8 @@ class Monero_Gateway extends WC_Payment_Gateway
|
||||
if (is_admin()) {
|
||||
/* Save Settings */
|
||||
add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options'));
|
||||
add_filter('woocommerce_currencies', 'add_my_currency');
|
||||
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
|
||||
add_filter('woocommerce_currencies', array($this,'add_my_currency'));
|
||||
add_filter('woocommerce_currency_symbol', array($this,'add_my_currency_symbol'), 10, 2);
|
||||
add_action('woocommerce_email_before_order_table', array($this, 'email_instructions'), 10, 2);
|
||||
}
|
||||
$this->monero_daemon = new Monero_Library($this->host, $this->port);
|
||||
@ -190,7 +190,7 @@ class Monero_Gateway extends WC_Payment_Gateway
|
||||
return $currencies;
|
||||
}
|
||||
|
||||
function add_my_currency_symbol($currency_symbol, $currency)
|
||||
public function add_my_currency_symbol($currency_symbol, $currency)
|
||||
{
|
||||
switch ($currency) {
|
||||
case 'XMR':
|
||||
|
Loading…
Reference in New Issue
Block a user