WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] DKK currency symbol (2 posts)

  1. troelsfeodor
    Member
    Posted 1 year ago #

    I am using Danish Kroner as the currency and the symbol shown on the site is "kr", but it is a requirement from my payment processor that I use the formal correct "DKK".

    How do I change the currency symbol associated with Danish Kroner?

    http://wordpress.org/extend/plugins/woocommerce/

  2. troelsfeodor
    Member
    Posted 1 year ago #

    Figured it out!

    Added this to my functions.php

    add_filter('woocommerce_currency_symbol', 'add_custom_danish_currency_symbol', 10, 2);
    function add_custom_danish_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
    case 'DKK': $currency_symbol = 'DKK'; break;
    }
    return $currency_symbol;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.