• I seem to have some problems with my currency with Woocommerce, on my shop i need to have “Kr” instead of “DKK” so i added the following at the end of Functions.php

    add_filter( ‘woocommerce_currencies’, ‘add_my_currency’ );

    function add_my_currency( $currencies ) {
    $currencies[‘Kr’] = __( ‘Currency name’, ‘woocommerce’ );
    return $currencies;
    }

    add_filter(‘woocommerce_currency_symbol’, ‘add_my_currency_symbol’, 10, 2);

    function add_my_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
    case ‘Kr’: $currency_symbol = ‘Kr’; break;
    }
    return $currency_symbol;
    }

    But now afterwards as i removed the line again, now i don’t have any currency at all on the shop.

    You can see it on below link:

    https://sosouh.webin.dk/

    Click on any product and you will see what i mean.

    Best regards
    Danni

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce currency missing’ is closed to new replies.