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:

showif and cart (1997) [switch][case] (2004) Great product and great job ! (1997) RE: textA and Title? (1997) Show items based on login Password (2003) [DELETEFILE] via http (2003) Re:quit command on NT (1997) UPPERCASE (1997) Re:Email Problem (1997) questions on variations of Ken's [text multi=T]var1=&var2=[/text] (1999) Server capacity (2003) Help name our technology! I found it (1997) REDIRECT MULTIPLE RESULTS (2000) Editor (2000) Re:2nd WebCatalog2 Feature Request (1996) SSL with IIS 4.0 (1998) Database Not Found Problem (2004) different browser, different result (2000) [TaxableTotal] - not working with AOL and IE (1997) [ShowNext] (1997)