[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] quantity pricing with multiple product databases
****** message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net> ******
John Turner schrieb:
>
> ****** message to minivend-users from John Turner <johnt@compar.com> ******
>
> I do not clearly remember which way around it was but I did try to
> control the display using an [if] based on this result. One of
> [item-price noformat] and [item-price noformat=1] gave $0.00 and the
> other gave 0, if the item was in prodktm. If the item was in products
> then the result would be either $123.00 or 123. If [item-data prodktm
> price] was the reference then it was always $0.00 or 0 regardless of the
> table the item was in, but [item-data products price] gave the right
> values if the item was in the products file. This was essentially how
> I deduced the price was zero inside quantity.html if the item resided in
> the auxilliary products file.
Sorry, but it is difficult to understand you (I'm an old german boy). If
I undertand you right, the
[item-price or whatsoever with noformat or noformat=1...]
print out such kind of "$xyz", remove any chars (for example "$") from
your any database (or tables).
Perl will get the value "0", if there are any character with any numbers
in the price field.
I would stongly suggest to insert _only_ numbers into the price field
(for example "123.45" or "999.99" and not "99,00" or "123,00").
Regards,
Joachim
--
-------------Hans-Joachim Leidinger---------------------
-
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