Currency issue “kr.” on PDF invoice

[ad_1]

Hi support,

We are experiencing problems with the PDF invoices on many of our danish clients. The problem is that the danish currency is named “kr.” and then the invoice seems to add an empty box just after the currency like in the picture below:

The only solution at the moment is changing the danish currency from “kr.” to “DKK” with the PHP code below, but that is not a solid solution.

/**
 * Change a currency symbol
 */
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);

function change_existing_currency_symbol( $currency_symbol, $currency ) {
     switch( $currency ) {
          case 'DKK': $currency_symbol="DKK"; break;
     }
     return $currency_symbol;
}

Can you fix this issue in a new update of your plugin?

Best regards,
Mikkel

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer