Adding discount to cart

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28848
interpreted = N
texte = I need to factor in a discount to an order which is a percentage of the subtotal. This need to be displayed each time the cart is viewed. This percentage may be zero and should thus be hidden. I've searched the list archives and I gather the best way to do this is by adding a lineitem in the cart - perhaps an item with a SKU of DISCxxx and negative price. Thinking about this briefly it seems that any time something is added, modified or removed, first the discount lineitem would have to be deleted and then after other changes to the cart, recalculated and added on as the last line item. The cart could then be displayed with the discount incorporated.Can someone pls tell me other tactics/considerations for doing this discount thing and outline the elegant solutions they've come up with? TIA.------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding discount to cart (John Butler 2000)
  2. Re[2]: Adding discount to cart (jpeacock@univpress.com 2000)
  3. Re: Adding discount to cart (John Butler 2000)
  4. Re: Adding discount to cart (Rob Schmidt 2000)
  5. Re: Adding discount to cart (John Butler 2000)
  6. Re: Adding discount to cart (jpeacock@univpress.com 2000)
  7. Adding discount to cart (Rob Schmidt 2000)
I need to factor in a discount to an order which is a percentage of the subtotal. This need to be displayed each time the cart is viewed. This percentage may be zero and should thus be hidden. I've searched the list archives and I gather the best way to do this is by adding a lineitem in the cart - perhaps an item with a SKU of DISCxxx and negative price. Thinking about this briefly it seems that any time something is added, modified or removed, first the discount lineitem would have to be deleted and then after other changes to the cart, recalculated and added on as the last line item. The cart could then be displayed with the discount incorporated.Can someone pls tell me other tactics/considerations for doing this discount thing and outline the elegant solutions they've come up with? TIA.------------------------------------------------------------- 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 Rob Schmidt

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 and cart (1998) Field Not Blank (2006) [ShowNext] (1997) [SearchString] usage (1997) [WebDNA] Calendar script (2009) Quit revisited (1997) Search group and ww (2003) Shell Scripts (2003) Scrape Interest Rates (2005) why do I get authorization requests, even though (1999) default value from Lookup (was Grant, please help me) (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Capacity question (2002) Cart Creation (1998) Changes to the List (1997) Why are some admin pages not encrypted? (2000) [WebDNA] Talklist Archive & Twitter (2009) Server problem? (1998) expired beta (1997) Adding headers to email (1997)