Last active
March 15, 2017 11:51
-
-
Save jagels/440acc2268e4c2c148d9914a39d8d329 to your computer and use it in GitHub Desktop.
Endre valutasymbol fra kr til ,- for norske nettbutikker på WooCommerce
This file contains 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
//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