[ic] Item discount clearer now...

Mike Heins mikeh@minivend.com
Sat, 11 Nov 2000 09:24:00 -0500

Quoting Jerry (jerry@data-logic.com):
> After going through the docs for the twentieth time,
> I've figured out you can deduct a specific dollar amount
> to an entire order, but not on individual items.
> [discount itemid] $s * .95 [/discount] works fine.
> [discount itemid] $s - 5 [/discount] deducts only 5.00
> from the order once, even if you order 5 of that item. 
> So I guess we'll live with setting individual item discounts
> by percentage of price.  Hope this saves someone else
> a little research time.

Actually, you can do whatever you want as long as you take
quantity into account.

The formula I think you want is:

	[discount itemid]
		$s - ( $q * $5 );

Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon