[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Price based Shipping calc.
Hi All -
> price ranges should not overlap IE:
>
> 0 29.99 7.50
> 30 99.99 10.40
>
> > code description criteria min max formula
> > usps US Post price 0 30 7.50
> > usps US Post price 30 100 10.40
A minor point:
It *is* OK if the price ranges overlap, as long as you're aware that the
first found match wins. The MiniVend code looks for:
( total >= min ) and ( total <= max )
So in the original example above, a $30.00 total will match $7.50
shipping, and never reach the next line.
If you use the ranges:
0 30 7.50
30 100 10.40
they actually work the same as if you had used:
0 30 7.50
30.01 100 10.40
(assuming 0.01 is your smallest currency increment, which it may not be).
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)