Created
November 13, 2012 23:15
-
-
Save claudiosanches/4069068 to your computer and use it in GitHub Desktop.
Add ARS in Jigoshop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function new_jigoshop_add_my_currency( $currencies ) { | |
$currencies['ARS'] = ' Argentine peso ($)'; | |
asort( $currencies ); | |
return $currencies; | |
} | |
add_filter( 'jigoshop_currencies', 'new_jigoshop_add_my_currency', 1, 1 ); | |
function new_jigoshop_add_my_currency_symbol( $currency_symbol, $currency ) { | |
if ( $currency == 'ARS' ) { | |
$currency_symbol = '$'; | |
} | |
return $currency_symbol; | |
} | |
add_filter( 'jigoshop_currency_symbol', 'new_jigoshop_add_my_currency_symbol', 1, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment