[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [calc] problem
On 15 Sep, peter hicks wrote:
> ****** message to minivend-users from peter hicks <peter@libation.com> ******
>
> hello list,
>
> the following tags return the wrong amount:
>
> [currency][calc][discount-price] * [item-quantity][/calc][/currency]
>
> if I just place the tags
> [discount-price] * [item-quantity]
>
> I get the values
> $18.05 * 12
>
> but the [calc] tag returns 60, not 216.60.
>
> I want to set up a per item sub-total in the basket.
>
> Your help is appreciated immensely!
Try
[currency][calc][discount-price noformat] * [item-quantity][/calc][/currency]
or
[currency][calc][discount-price noformat=1] * [item-quantity][/calc][/currency]
because, you has "$18.05" as a string. As a non-string, you get 5 * 12
= 60! With noformat, you get "18.05" and with "18.05 * 12", you get
216.60!
Regards
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen