Re: Adding discount to cart

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28853
interpreted = N
texte = I have to calculate tax on the subtotal so I think your method below would fall short on that account. The discount has to be incorporated in the standard [subtotal] or else figuring of taxtotal, grandtotal etc is going to get whacky.>If they user gets a discount I store that fact in a header in the cart file (and also their discount rate stored in a header). If so then on the shopping cart page I display another table row after the subtotal which shows yer discount is [math](totalDiscount=[subtotal]*[discountRate])[/math] then another table row with yer discounted subtotal is [math][subtotal]-[totalDiscount][/math]... (I hand tweak all the rest as well - [discGrand], etc.) > >-John------------------------------------------------------------- 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 have to calculate tax on the subtotal so I think your method below would fall short on that account. The discount has to be incorporated in the standard [subtotal] or else figuring of taxtotal, grandtotal etc is going to get whacky.>If they user gets a discount I store that fact in a header in the cart file (and also their discount rate stored in a header). If so then on the shopping cart page I display another table row after the subtotal which shows yer discount is [math](totalDiscount=[subtotal]*[discountRate])[/math] then another table row with yer discounted subtotal is [math][subtotal]-[totalDiscount][/math]... (I hand tweak all the rest as well - [discGrand], etc.) > >-John------------------------------------------------------------- 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:

OT: Poll Results (2002) [WebDNA] Authentication across domains (2009) multi-paragraph fields (1997) [WebDNA] Secure Cookies - Further reading (2020) WebCat2b12plugin - [search] is broken ... not! (1997) WebCat2.0 [format thousands .0f] no go (1997) [WebDNA] [sendmail] sending two emails (2012) wild question (1998) Secure Server (1997) variables in [addlineitem] (1998) WebCat2b12 - nesting [tags] (1997) MacWEEK article help needed (1996) File Upload (1997) [recordrank]? (2000) flushdatabases (1997) Sorting by date (1997) Web Catalog 2 demo (1997) WebCat2: Master Counter snippet (1997) Problems passing [SKU] with $Replace in 2.0 (1997) ImageMagick (2005)