[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: multiple price fields
Hi, Dimitry,
I made it that way :
catalog.cfg :
Locale de_DM PriceField preisdm
Locale de_DM mon_decimal_point , mon_thousands_sep .
Locale de_DM currency_symbol DM
Locale de_DM price_picture "##.###,## DM"
Locale de_EUR PriceField preiseuro
Locale de_EUR mon_decimal_point , mon_thousands_sep .
Locale de_EUR currency_symbol EUR
Locale de_EUR price_picture "##.###,## EUR"
Locale de_OES PriceField preisoes
Locale de_OES mon_decimal_point , mon_thousands_sep .
Locale de_OES currency_symbol ÖS
Locale de_OES price_picture "##.###,## ÖS"
now you can change your currencies or price-fields using
[setlocale XXX]
e.g. if you have an input- or select-field, where you choose your price
you can act like that :
[if value waehrung eq "DM"]
[setlocale de_DM]
[/if]
[if value waehrung eq "euro"]
[setlocale de_EUR]
[/if]
.... I hope it helps you ... kim armann
Dmitriy Katsman wrote:
> Hi all:
>
> I've been trying to get MiniVend to use multiple prices... my product
> catalog has something like:
>
> Title Description Price Price-2 Price-3
>
> How can I get MiniVend to use Price-2 or Price-3 in Total calculation
> depending on some flag? It's really needed, and I can't use the
> PriceAdjust because Price-2 and Price-3 are NOT of any dependancy of
> Price. E.g., Price could be $100, and Price-2 could be only $12, or
> opposite...
>
> The only way I came up with so far is by using 2 additional items from
> database, one with price $1 and the other with price -$1... and just
> adding a needed number of these items to the shopping cart... but it's
> definetely not the way to do it... it looks ugly in the cart.. .plus a
> lot of problems arise when people delete the item they purchased, and
> still are left with my discount... looks like (-$124 in their total...
> :)
>
> Any ideas on how to use the Price-2 or -3 without going into such a
> mess?
>
> Thanks in advance,
> Dmitriy
>