Skip to content

Instantly share code, notes, and snippets.

@jagels
Last active March 15, 2017 11:51
Show Gist options
  • Save jagels/440acc2268e4c2c148d9914a39d8d329 to your computer and use it in GitHub Desktop.
Save jagels/440acc2268e4c2c148d9914a39d8d329 to your computer and use it in GitHub Desktop.
Endre valutasymbol fra kr til ,- for norske nettbutikker på WooCommerce
//changed currency from kr to ,-
add_filter('woocommerce_currency_symbol', 'jagels_change_existing_currency_symbol', 10, 2);
function jagels_change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'NOK': $currency_symbol = ',-'; break;
}
return $currency_symbol;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment