MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] "currency convert" oddity or bug?



Quoting Klaus Baldermann (kbaldermann@entire-systems.com):
> 
> Hi,
> 
> I am trying to setup pages with multiple currencies, but in a slightly
> different way than suggested in the minivend doc description of "setlocale".
> The example has two separate item-lists, I want to use one item-list with
> several
> prices.
> 
 
Precedence. The [item-price] tag is interpreted in the surrounding loop,
and will not change with locale in the way that you want.

> 
> [data scratch mv_locale]
>     [item-price]
> [setlocale currency=eur_EUR]
>   [currency convert=1]
>     [item-price noformat]
>   [/currency]
> [setlocale currency=cz_CZ]
>   [currency convert=1]
>     [item-price noformat]
>   [/currency]
> [setlocale currency=de_DE]
>   [currency convert=1]
>     [item-price noformat]
>   [/currency]
> [setlocale]
> </B><p>
> 

You shouldn't need both [setlocale] and [currency]. Try:


<!-- [data scratch ....] no longer supported, use [scratch ...] instead -->
[scratch mv_locale]
    [price [item-code]]
[setlocale currency=eur_EUR]
    [price [item-code]]
[setlocale currency=cz_CZ]
    [price [item-code]]
[setlocale currency=de_DE]
    [price [item-code]]
	
-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
                                    131 Willow Lane, Floor 2  | ||  _ \
It's a little-known fact            Oxford, OH  45056         | || |_) |
that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: