Re: Quantity discount on some items?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36246
interpreted = N
texte = The trick here is to put a [lineitems] loop at the top of the page after you add an item to the cart and walk through each line item and test your criteria. In your case, you would need to walk through the lines twice: once to see if the quantities purchased justify special handling; once to reset the prices.Remember that you might have to reduce their price as well as increase it; say they bought 1000 of A and 20 of B, then delete the 1000 of A. You need to reset the B prices to be the 10-99 price.HTHJohn PeacockJohn Davies wrote: > > Here is a tough one, > > Let's say we have 3 products: > > A - $10.00 qty 10-99 & $9.00 qty >99 > B - $20.00 qty 10-99 & $18.00 qty >99 > H - $1.00 > > The price of item H never changes, but the if more than 100 of items A, B, > or A+B is ordered the customer gets a 10% discount on items A and B. (I > really have A,B,C,D, and E that need to be discounted if any combination > adds up to more than 100) > > I picture it like so: > If the user orders more that 100 of A or B individually the price is set to > the discount value. - no problem. If the user orders 50 of A and 50 of B, > the prices of A and B need to be changed to the discount value. But how do I > do this after they have been added to the cart? I can't just to a general > 10% discount, because if the user add any H it gets the discount added, and > it shouldn't. > > HELP! > > John Davies > jd@professionalideas.com > _____________________________________________ > Martin Associates Design Agency > http://www.professionalideas.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Quantity discount on some items? (John Peacock 2000)
  2. Re: Quantity discount on some items? (Glenn Busbin 2000)
  3. Quantity discount on some items? (John Davies 2000)
The trick here is to put a [lineitems] loop at the top of the page after you add an item to the cart and walk through each line item and test your criteria. In your case, you would need to walk through the lines twice: once to see if the quantities purchased justify special handling; once to reset the prices.Remember that you might have to reduce their price as well as increase it; say they bought 1000 of A and 20 of B, then delete the 1000 of A. You need to reset the B prices to be the 10-99 price.HTHJohn PeacockJohn Davies wrote: > > Here is a tough one, > > Let's say we have 3 products: > > A - $10.00 qty 10-99 & $9.00 qty >99 > B - $20.00 qty 10-99 & $18.00 qty >99 > H - $1.00 > > The price of item H never changes, but the if more than 100 of items A, B, > or A+B is ordered the customer gets a 10% discount on items A and B. (I > really have A,B,C,D, and E that need to be discounted if any combination > adds up to more than 100) > > I picture it like so: > If the user orders more that 100 of A or B individually the price is set to > the discount value. - no problem. If the user orders 50 of A and 50 of B, > the prices of A and B need to be changed to the discount value. But how do I > do this after they have been added to the cart? I can't just to a general > 10% discount, because if the user add any H it gets the discount added, and > it shouldn't. > > HELP! > > John Davies > jd@professionalideas.com > _____________________________________________ > Martin Associates Design Agency > http://www.professionalideas.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[ShowIf] a either fields are blank (1998) International Orders (1998) Email and name capture (1999) best way to get 2 unique strings on the same page load? (2000) Replace Statement (1997) Delayed Redirect (2000) [WebDNA] Record click-thrus (2008) convert characters (2003) Has anyone used WebCatalog with CGatePro? (2000) shipping costs (1997) Extended [ConvertChars] (1997) 2nd WebCatalog2 Feature Request (1996) Calculating UPS Shipping (1999) Emailer problem with WC 2.1, NT, WebSite 2.1 (1998) Re[3]: Problem with new formvariables (2000) WebCat2b13MacPlugIn - more [date] problems (1997) Cancel Subscription (1996) Upload Maximum (2003) Stat analyzer (1997) problems with 2 tags (1997)