Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created November 13, 2012 23:15
Show Gist options
  • Save claudiosanches/4069068 to your computer and use it in GitHub Desktop.
Save claudiosanches/4069068 to your computer and use it in GitHub Desktop.
Add ARS in Jigoshop
<?php
function new_jigoshop_add_my_currency( $currencies ) {
$currencies['ARS'] = ' Argentine peso (&#36;)';
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 = '&#36;';
}
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