Adding a currency

There are two hooks you can use to add and manipulate currencies: jigoshop_currencies and jigoshop_currency_symbol.

To add a currency to the options dropdown in the backend, add something like this in your theme’s functions.php file:

function jigoshop_add_my_currency( $currencies ) {
$currencies['SIM'] = 'Simoleans (§)';
return $currencies;
add_filter('jigoshop_currencies', 'jigoshop_add_my_currency', 1, 1);

And to set the symbol up:

function jigoshop_add_my_currency_symbol( $currency_symbol, $currency ) {
if ($currency=='SIM') $currency_symbol = '§';
return $currency_symbol;
add_filter('jigoshop_currency_symbol', 'jigoshop_add_my_currency_symbol', 1, 2);

Note: Version and above required