[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [item-price]
****** message to minivend-users from jojo@buchonline.net ******
On 21 Jun, Victor Nolton wrote:
> ****** message to minivend-users from Victor Nolton <ven@pragakhan.com> ******
>
> Okay still at work.. The only other reason i can think of as for why
> this [item-price] is not working is. I have it in the middle of a
> [calc] field
If you are using [item-price] between [calc]...[/calc], use
[item-price noformat=1] instead.
>
> Is there a way to escape this?
>
> I've now tried [item-price] and [loop-price] But didn't realize after
> my first post that it's in the middle of a [calc] tag (as seen in the
> simple demo from long ago
>
> [calc]
> return <<EOF if $inc % 2;
> <tr>
> <td bgcolor="#cccccc" align=left valign=top><font
> face="arial">[loop-price]</font></td>
> </tr>
> EOF
> return '';
> [/calc]
[seti dummy][loop-price noformat=1][/seti]
[calc]
return <<EOF if $inc % 2;
<tr>
<td bgcolor="#cccccc" align=left valign=top><font
face="arial">[scratch dummy]</font></td>
</tr>
EOF
return '';
[/calc]
may work, but not tested.
> (I snipped out all the other code. I've used this on the results
> page with [item-price] and I've used it in a [loop search] argument
> as well. still returns .00
You must have numbers without any chars only to get a right
calculation. Any [xyzuvw-price] _is_ formated as "$123.00" or so.
Regards,
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671449
45886 Gelsenkirchen FAX: 0209 1671449
-
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