Removing currency code letters in Ecommerce

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Removing currency code letters in Ecommerce

Brent Dykgraaf
Hello

I am working on an ecommerce customisation an wonder if there is an option
to remove currency letters which show before the price generated by the
<@ofbizCurrency /> tags?

The store shows prices as NZ$34.50, I am trying to get them to show $34.50.
Customers will only be from one country so there is no need for mulit
currency at this stage.

Regards
Brent Dykgraaf
Reply | Threaded
Open this post in threaded view
|

Re: Removing currency code letters in Ecommerce

Sumit Pandit
Since your customer belongs to same country therefore, A simple option is to
-  Hard code your currency symbol and show ${itemPrice}

Or do store setting to show specified currency UOM.


On Tue, Aug 10, 2010 at 2:39 AM, Brent Dykgraaf <[hidden email]> wrote:

> Hello
>
> I am working on an ecommerce customisation an wonder if there is an option
> to remove currency letters which show before the price generated by the
> <@ofbizCurrency /> tags?
>
> The store shows prices as NZ$34.50, I am trying to get them to show $34.50.
> Customers will only be from one country so there is no need for mulit
> currency at this stage.
>
> Regards
> Brent Dykgraaf
>



--
Thanks and Regards
Sumit Pandit
Thanks And Regards
Sumit Pandit
Reply | Threaded
Open this post in threaded view
|

Re: Removing currency code letters in Ecommerce

Scott Gray-2
In reply to this post by Brent Dykgraaf
Hi Brent,

As a fellow Kiwi I feel obliged to assist :-)

The currency formatter is actually quite smart and will display the currency letters when the supplied locale is differs from what it expects for the currency's isoCode.
Some examples:
locale: en_US, isoCode=NZD results in NZ$34.50  (Assumes you're an American looking at a New Zealand price)
locale: en_NZ, isoCode=NZD results in $34.50  (Assumes you're a New Zealander looking at a local price)
likewise if we turn the tables:
locale: en_NZ, isoCode=USD results in US$34.50
locale: en_US, isoCode=USD results in $34.50

so all you need to do is set the default OFBiz locale to en_NZ.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 10/08/2010, at 9:09 AM, Brent Dykgraaf wrote:

> Hello
>
> I am working on an ecommerce customisation an wonder if there is an option
> to remove currency letters which show before the price generated by the
> <@ofbizCurrency /> tags?
>
> The store shows prices as NZ$34.50, I am trying to get them to show $34.50.
> Customers will only be from one country so there is no need for mulit
> currency at this stage.
>
> Regards
> Brent Dykgraaf


smime.p7s (3K) Download Attachment