Akopia Akopia Services

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

Re: [mv] [item-price]



******    message to minivend-users from Victor Nolton <ven@pragakhan.com>     ******

problem with that is, it now returns a "30" instead of "$30.00"

I knew I had this problem before, I had this same problem a long time 
ago with [item-price] [loop-price] in the [calc] fields of the main 
page when i told it to pick 2 random objects.

Ven

>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


Ven's News (Bookmark It) : http://www.vensnews.com

Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
AOL: WebmstrVen     Praga Khan's Official Website        ICQ: 8321393
                       http://www.pragakhan.com
-
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


Search for: Match: Format: Sort by: