wp-admin ยป ๐Ÿ›๏ธ WooCommerce: Change the Serbian Dinar currency symbol from ั€ัะด. to RSD.

๐Ÿ›๏ธ WooCommerce: Change the Serbian Dinar currency symbol from ั€ัะด. to RSD.

For years WooCommerce was showing the Serbian currency as дин. but this was recently changed to рсд. and now Serbian currency is available in WooCommerce only in Cyrillic script (РСД). You’ll see more details here.

But because the Serbian language can be written both in Cyrillic as well as in Latin script, and almost 100%, of webshops in the Serbian language are made with Latin script, the currency should be displayed in RSD (Latin).

chrome qmNlzukoit 1024x532 - ๐Ÿ›๏ธ WooCommerce: Change the Serbian Dinar currency symbol from ั€ัะด. to RSD.
WooCommerce рсд.
rsd currency woocommerce 1024x532 - ๐Ÿ›๏ธ WooCommerce: Change the Serbian Dinar currency symbol from ั€ัะด. to RSD.
WooCommerce RSD.

This small plugin will automatically translate WordPress from Serbian Cyrillic script to Latin

But to solve the WooCommerce problem, here is a small snippet that will help you display prices as RSD.


Change WC currency РСД to RSD

To simply translate РСД (Cyrillic) to RSD (Latin) use this code:

See also  How to move WordPress pages to the Domain Root
add_filter('woocommerce_currency_symbol', 'wdc_change_currency_symbol', 10, 2);
function wdc_change_currency_symbol( $currency_symbol, $currency ) {
    if($currency == "RSD"){ // don't change this
        $currency_symbol = 'RSD'; // change name here
    }
    return $currency_symbol;
}

After adding the code to your active theme functions.php file or a child theme, all prices on the website should be coverted to RSD. And under WooCommerce > Settings > General the currency Srpski Dinar should now have RSD as a symbol.

image - ๐Ÿ›๏ธ WooCommerce: Change the Serbian Dinar currency symbol from ั€ัะด. to RSD.

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

Recommended