[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Discount not rounding correctly
****** message to minivend-users from "quzax" <quzax@minwell.com> ******
I have set up & have working a discount system for one of our clients. I
have two questions about how discounts work.
Problem #1 I have a 10% discount set for each item individually. this works
fine in the cart & all except when I have more than one of the item the
price is then off by $.01. I have the following code in my basket.html to
display the line subtotal (discount price x qty):
[currency]
[calc]
([discount-price noformat] * [item-quantity])
[/calc]
[/currency]
This seams to work except that the line total(extension) has $.01 extra.
This appears to be a rounding problem $8.95 * .1 = .895. Minivend is just
dropping the third decimal place off instead of rounding up. Is there anyway
I could make minivend round the price up? Or would this cause additional
problems?
example:
QTY Price Extension
2 $8.05 $16.11
Item is discounted $0.89
Original price is $8.95
Also I am trying to discount an item based on if the customer is a member of
the club & they are purchasing 3 of this item. Thus far I have been unable
to get this to work. I don't have any code for this that has worked even
remotely. Any suggestions would be appreciated.
Thanks
Brian Kohles - Graphic Designer
m e d i a b a n g !
brian@mediabang.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