Re: Disconts

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55284
interpreted = N
texte = Thanks. I thought I had to do it that way, but wanted to double check there was no built in function. Erol ----- Original Message ----- From: "Jesse Proudman" To: "WebDNA Talk" Sent: Thursday, January 08, 2004 10:48 AM Subject: Re: Disconts > > On Jan 8, 2004, at 2:45 AM, Erol Guneri wrote: > > > Hi, > > > > Is there any way that you can discount a cart? > > > > What I am trying to do is list all the items, then have a discount line > > which is then taken away from the subtotal and grandtotal. I want it > > to > > look something like: > > > > > > Product Price > > Product1 £10 > > Product2 £10 > > Discount (10%) £2 > > SubTotal £18 > > Tax £0.30 > > GrandTotal £18.30 > > I've done this by hand... I'm not aware of any built in way to do it. > Basically you set your discount percentage as a math variable, and then > in a math context to generate your grand total you multiply the > subtotal by the discount percentage, add the tax and voila, your grand > total. > > Does that make sense? > > -- > Jesse Williams-Proudman > Blue Box Development :: Custom Web Solutions > +1.206.778.8777 :: jesse@blueboxdev.com > > *Happy Holidays* > > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Disconts ( John Peacock 2004)
  2. Re: Disconts ( Donovan Brooke 2004)
  3. Re: Disconts ( Donovan Brooke 2004)
  4. Re: Disconts ( "Erol Guneri" 2004)
  5. Re: Disconts ( Jesse Proudman 2004)
  6. Disconts ( "Erol Guneri" 2004)
Thanks. I thought I had to do it that way, but wanted to double check there was no built in function. Erol ----- Original Message ----- From: "Jesse Proudman" To: "WebDNA Talk" Sent: Thursday, January 08, 2004 10:48 AM Subject: Re: Disconts > > On Jan 8, 2004, at 2:45 AM, Erol Guneri wrote: > > > Hi, > > > > Is there any way that you can discount a cart? > > > > What I am trying to do is list all the items, then have a discount line > > which is then taken away from the subtotal and grandtotal. I want it > > to > > look something like: > > > > > > Product Price > > Product1 £10 > > Product2 £10 > > Discount (10%) £2 > > SubTotal £18 > > Tax £0.30 > > GrandTotal £18.30 > > I've done this by hand... I'm not aware of any built in way to do it. > Basically you set your discount percentage as a math variable, and then > in a math context to generate your grand total you multiply the > subtotal by the discount percentage, add the tax and voila, your grand > total. > > Does that make sense? > > -- > Jesse Williams-Proudman > Blue Box Development :: Custom Web Solutions > +1.206.778.8777 :: jesse@blueboxdev.com > > *Happy Holidays* > > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ "Erol Guneri"

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:

request for comment tag (1998) [math] storage of variables (1997) 2.0 Beta (1997) [WebDNA] TCPConnect w/ user:pass (2009) Date search - yes or no (1997) shownext and searches (2002) Only charge card when product shipped ? (1997) OT: create a KDE Screen Saver for Linux (2003) Creating folders and deleting files (1997) Emailer (1997) Mac OS X ODBC (2002) my price won't move (1997) RE: E-mailer error codes (1997) Setting up the server (1997) WebCatalog and WebMerchant reviewed by InfoWorld (1997) [WebDNA] Searching for encrypted values (2014) Banner DNA (1997) Stumpted Again (1997) [WebDNA] error on mirror site (2015) Sorting by date (1997)