[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] ?Bug Report? - Locale Issues
****** message to minivend-users from Chris Rapier <rapier@psc.edu> ******
So it seems there are two bugs both related in some way to the setlocale
tag. This is under minivend 4.04 on freebsd 3.3.
bug #1) Persist doesn't seem to work.
Using [setlocale locale=en_FORC currency=en_US persist=1] on page1.html
does not pass the locale information to page2.html. The evidence I have
of this is that I'm using setlocale to enable different price lists
based on the user type. This is set on the 'welcome' page. When the
customer is moved to the 'results' page the default price is listed. The
price is generated using either [item-price] or [price
code="[item-code]" discount=1].
bug #2) The currency part of the setlocale tag seems to break things.
This may be a misconfiguration on my part.
When I have [setlocale locale=en_US currency=en_US persist=1] and
then use
[calc][price code="[item-code]" discount=1] * [item-quantity][/calc]
I get results of "14" for values of 3.14 and 1 (for example).
When I encapsulate the [calc] inside of a [currency] tag I end up with
results of
$14.00 for values of 3.14 and 1.
If I remove the [setlocale] tag and use [currency] I get the right price
but no $ sign.
In my catalog.cfg file I have the following defined
Locale en_US LC_CTYPE C
Locale en_US currency_symbol $
Locale en_US mon_decimal_point .
Locale en_US mon_thousands_sep ,
Locale en_US p_cs_precedes 1
Locale en_FORC PriceField forc
I'm continuing to look into this. If I find out anything more I'll post
it here.
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list