Skip to content

Commit 8c82f23

Browse files
committed
add custom symbol
1 parent b99d94c commit 8c82f23

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

woocommerce-erc20-payment-gateway.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ public function init_form_fields() {
9898
'type' => 'checkbox',
9999
'default' => 'no',
100100
),
101+
'symbol' => array(
102+
'title' => __('Symbol', 'woocommerce-erc20-payment-gateway'),
103+
'type' => 'text',
104+
'description' => __('Symbol will show on site,before price.'),
105+
'default' => '$',
106+
),
101107
'title' => array(
102108
'title' => __('Title', 'woocommerce-erc20-payment-gateway'),
103109
'type' => 'text',
@@ -219,7 +225,7 @@ public function inkerk_add_my_currency($currencies) {
219225
}
220226
public function inkerk_add_my_currency_symbol($currency_symbol, $currency) {
221227
switch ($currency) {
222-
case 'ERC20':$currency_symbol = '𝘾';
228+
case 'ERC20':$currency_symbol = $this->symbol;
223229
break;
224230
}
225231
return $currency_symbol;

0 commit comments

Comments
 (0)