Euro currency

This is an archive of old posting to the User Forum

Euro currency

Postby Stefano Ravazzini » Wed Dec 26, 2001 7:35 am

Is it possible to display 1.256,22 istead of 1,256.22 euro? ( invert ","
with ".")
I woul like to change it not only in the generated catalog but also in the
shopping basket.

thaks and happy new year
Stefano Ravazzini
 

Re: Euro currency

Postby loren_d_c » Wed Dec 26, 2001 10:11 am

Yes. The format of all currencies that ShopSite uses is defined in a
file called currency.dat. You can modify this file (definitions of the
format are in the top of the file) and change the decimal delimiter to ,
and the thousands delimiter to . but make sure you do it in the
appropriate place, do NOT change the $#,###.##, that just tells where
the delimiters are placed and where the currency symbol is placed in
relation to the numbers.

Once you have changed the currency.dat file, temporarily switch your
currency to another (don't publish) then switch back to the Euro and the
changes you made in the file should take affect immediately in the
shopping cart and in the store pages as soon as you Publish.

-Loren




Stefano Ravazzini wrote:
Is it possible to display 1.256,22 istead of 1,256.22 euro? ( invert ","
with ".")
I woul like to change it not only in the generated catalog but also in the
shopping basket.

thaks and happy new year
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Euro currency

Postby Stefano Ravazzini » Thu Dec 27, 2001 3:57 pm

In my version of shopsite there's nothing in the first lines of the .dat
file concerning the definitions of the
format
I use pro version v 5.01 on BSD
Stefano Ravazzini
 

Re: Euro currency

Postby loren_d_c » Thu Dec 27, 2001 4:05 pm

Strange, it should be there in the currency.dat in your ss directory. Here
is what it says:

-Loren



# currency.dat
# Contains the following pipe-delimited fields:
#
# ISO 4217 currency code
# currency name
# currency symbol
# display format string
# alternate display format string
#
# The records will show up in the select list in the order
# they are defined here.
#
# The format strings employ special characters to show location
# of elements in the display of values.
# $ placement of Currency symbol
# # any digit
# , placement of separator
# . placement of decimal
# - placement of sign, if any
# () placement of parentheses to indicate negative value
# The '#' characters are used to indicate number of decimal places
# and number of digits between separators. If the decimal character is
# left out, there will be no fractional part shown, as in Lit 400
#
# The '$' embedded in '#' is a special case indicating the currency symbol
# is used in place of the decimal, as in 1.450$00
#
# The alternate display format string is optional, and is used to display
# negative numbers. It should only be used for those currencies that have
# different placement of elements between positive and negative values.
#
# Below are several examples of different currencies. Shown are the currency
record
# as it would appear in this file, and the formatted output of one positive
and one
# negative value.
#
# Example 1:
#
# |USD|US Dollar|$|-$#,###.##||
# $2,667.98
# -$239.25
#
# Example 2:
#
# |MXN|Nuevo Peso Mejicano|N$|($#,###.##)||
# N$2,667.98
# (N$239.25)
#
# Example 3:
#
# |NOK|Nynorsk krone|kr|$ -#,###.##||
# kr 2,667.98
# kr -239.25
#
# Example 4:
#
# |FMK|Finnmark|mk|#,###.## $|$ #,###.##-|
# 2,667.98 mk
# mk 239.25-
#
# Example 5:
#
# |PTE|Escudo Portugues|$|-#,###$##||
# 2,667$98
# -239$25
#


Stefano Ravazzini wrote:

In my version of shopsite there's nothing in the first lines of the .dat
file concerning the definitions of the
format
I use pro version v 5.01 on BSD
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Euro currency

Postby Stefano Ravazzini » Thu Dec 27, 2001 4:20 pm

well , and where is the line to change "," with "." ?
Stefano Ravazzini
 

Re: Euro currency

Postby loren_d_c » Thu Dec 27, 2001 5:14 pm

OK, I deeply apologize, I had you barking up the wrong tree. The
currency.dat determines the format for the currency and the currency
symbol etc, but what to use as the delimiters is defined by the locale
in localeinfo.dat. Right now, for en-EU, which is English, European
Union, the line looks like:

|en-EU|English, European Union (en-EU)|latin1|,|.|kg|%a %d %b %Y|%a %d
%b %Y %H:%M:%S|%H:%M:%S

So the European Union locale already has the , and the . switched (the
only English locale to do so), so you just need to go to Preferences ->
Locale and change to that locale, both for the merchant and the shopper.

Note that when you switch the locale for the shopper you will loose all
your custom strings from Preferences -> Store Text, so you may want to
back up the file called world.aa in your data directory first, then
after you have made the switch, restore it from the backed up copy to
restore your customized strings.

-Loren



Stefano Ravazzini wrote:

> well , and where is the line to change "," with "." ?
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 120 guests