Added currency support for United Arab Emirates Dirham
This commit is contained in:
parent
87a3fdb94f
commit
e2fab93c7a
|
@ -164,6 +164,7 @@ function get_woocommerce_currencies() {
|
||||||
return array_unique(
|
return array_unique(
|
||||||
apply_filters( 'woocommerce_currencies',
|
apply_filters( 'woocommerce_currencies',
|
||||||
array(
|
array(
|
||||||
|
'AED' => __( 'United Arab Emirates Dirham' ),
|
||||||
'AUD' => __( 'Australian Dollars', 'woocommerce' ),
|
'AUD' => __( 'Australian Dollars', 'woocommerce' ),
|
||||||
'BRL' => __( 'Brazilian Real', 'woocommerce' ),
|
'BRL' => __( 'Brazilian Real', 'woocommerce' ),
|
||||||
'BGN' => __( 'Bulgarian Lev', 'woocommerce' ),
|
'BGN' => __( 'Bulgarian Lev', 'woocommerce' ),
|
||||||
|
@ -218,6 +219,9 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ( $currency ) {
|
switch ( $currency ) {
|
||||||
|
case 'AED' :
|
||||||
|
$currency_symbol = '(د.إ';
|
||||||
|
break;
|
||||||
case 'BRL' :
|
case 'BRL' :
|
||||||
$currency_symbol = 'R$';
|
$currency_symbol = 'R$';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue