[ic] Re: how to override commonadjust or have [discount] apply and no quantity pricing

Kevin Walsh kevin at cursor.biz
Thu Oct 5 18:30:16 EDT 2006


NOW Web Sites Coordinator <webperson at now.org> wrote:
> I want the 25% off discount to apply even if they order more than one item.
> 
> However, on a few of our items, we have quantity discounts (not all of our 
> items).  So, for those items, we might discount 20% if they order more than 
> 10 items, say.
> 
> But for the special group of people who get a global 25% off discount, I 
> don't want them to get a 20% quantity discount AND a 25% discount.  And 
> that's what's happening when I use the [discount ALL_ITEMS]$s * 
> .75[/discount] tag.
> 
You need to use [discount] at all to get what you want.

The following should give you some idea of how to override the
CommonAdjust for a named class of user.

======================================================================
Profile special CommonAdjust   :sale_price ;:price, ;$, ==:options, -25%
Profile special NonTaxableField
Profile special PriceField 0

Profile default CommonAdjust   pricing:q2,q5,q10,q25,q50,q75,q100: ;:sale_price, ;:price, ;$, ==:options
Profile default NonTaxableField
Profile default PriceField 0

CommonAdjust   pricing:q2,q5,q10,q25,q50,q75,q100: ;:sale_price, ;:price, ;$, ==:options
NonTaxableField
PriceField     0
======================================================================

Users who have "special" in their userdb.price_level column will get a
straight 25% discount off all products.  Other users will get your
standard product prices and quantity discounts etc.



By the way, I usually just ignore top-posted followups.  Please trim
and quote your followups properly.

----------------------------------------------------------------------
Because it makes articles difficult to follow in the archives.
> Why is top-posting bad?
----------------------------------------------------------------------

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


More information about the interchange-users mailing list