woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.39k stars 10.77k forks source link

Surinamese dollar currency symbol #25398

Open pmaiorana opened 4 years ago

pmaiorana commented 4 years ago

Is your feature request related to a problem? Please describe. In 2623170-zen a user reported to us an issue with the Surinamese dollar currency symbol:

I'm trying to get the correct cuurency symbol from the dropdown menu in woocommerce, but I noticed that this is not the correct symbol, it should be SRD (and not $) Could you change this to SRD, please.

I have confirmed that $ is the correct symbol for SRD, however, it seems $ is often not used in practice in Suriname but instead SRD is used to differentiate from USD:

It's not just forex traders but also the people of Suriname who often refer to the national currency as SRD. Since the U.S. dollar, is used for prices on big-ticket items such as electronics, furniture, appliances, and motor vehicles, this helps differentiate the dollar used in Suriname.

Describe the solution you'd like I'm not sure what the correct solution is, so I'm just passing along the report :) The user would like the $ symbol for the Surinamese currency replaced with SRD.

claudiosanches commented 4 years ago

We haven't received any other request for it, at least not that I could found or remember, so not sure how to validate it, probably should be better to have feedback from more users, and have references of what big stores does on Suriname.

Anyway, until there this shop owner could change the currency symbol with the following filter:

add_filter( 'woocommerce_currency_symbols', function( $symbols ) {
    $symbols['SRD'] = 'SRD';

    return $symbols;
} );

I'm going to keep this open for now, so we may get some feedback.

rynaldos-zz commented 4 years ago

We have documentation here: https://docs.woocommerce.com/document/change-a-currency-symbol/ and I created a small plugin for that here: https://github.com/rynaldos/wc-dollar-symbol-changer (based on https://github.com/woocommerce/woocommerce/issues/20612)

melindahelt commented 3 years ago

Request for this in 4011804-zen

barryhughes commented 8 months ago

This is an oldie.

CLDR Release 44.1 > Netherlands > Suriname

Use of $ does seem to be supported by the current CLDR release, which is the standard we generally follow for this sort of change.