[ic] quantity discounts for all items

Barry Treahy, Jr. interchange-users@icdevgroup.org
Fri Jun 20 18:57:01 2003


Jim Boyer wrote:

> Hi,
>
> I am having trouble figuring out how to discount an item 15% if the 
> qty > 100 and 25% if the qty > 250 for that item.  I know about the 
> pricing table, but the percentages using -15% or -25% don't seem to 
> work.  Also I need to apply this to all items, which I have over a 
> thousand.  I have searched the archives but don't seem to be getting 
> the idea.  Do I need to use a discount tag, is so how and where.  I 
> also tried my own UserTag, but that didn't work either.
>
Simpliest approach is using CommonAdjust with a home-brew usertag that 
does the price bracketing you want. 

CommonAdjust    :sale_price, ;:price, ;$, ==:options

Create a usertag, like my example 'sale_price' that will do that and 
you'll be all set; Just remember to restart the server...

Barry

--

Barry Treahy, Jr  *  Midwest Microwave  *  Vice President & CIO 

E-mail: Treahy@mmaz.com * Phone: 480/314-1320 * FAX: 480/661-7028