WooCommerce - excelling eCommerce
Change the symbol of an existing currency (6 posts)

  1. JKNN
    Posted 3 years ago #


    I want to change the "Dansk krone" currency symbol from "kr" to "DKK". How is this possible?

    I have tried adding a new currency according to this article but when choosing the new currency, my PayPal payment module does not work anymore (not selectable in checkout).

    What to do?


  2. JKNN
    Posted 3 years ago #

    Figured it out. Found the place in woocommerce-core-functions.php and changed the html code for "kr" to the html code for "DKK." Works like a charm - until the next woocommerce update at least :-)

  3. royho
    Plugin Author

    Posted 3 years ago #

  4. JKNN
    Posted 3 years ago #

    Did you even read my question?

  5. jkohlbach
    Posted 2 years ago #

    Just incase someone else stumbles upon this, here's how you change the symbol of an existing currency and have it still work in PayPal:

    add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
    function change_existing_currency_symbol( $currency_symbol, $currency ) {
         switch( $currency ) {
              case 'AUD': $currency_symbol = 'AUD$'; break;
         return $currency_symbol;
  6. mdeDev.com
    Posted 2 years ago #

    For those out there with similar problem I used this plugin and it solved my problem with paypal payment and custom currencies


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic