Re: anyone about?
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59624
interpreted = N
texte = Alan White wrote:> woops... never sent the code...> > [orderfile cart=[cart]]> [text]afterDiscount=[math][subTotal]-(([subTotal]/100)*[discountFactor])[/math][/text] > > [setheader > cart=[cart]]nonTaxableTotal=[afterDiscount]&taxableTotal=0[/setheader] > [/orderfile]> > This doesn't seem to be writing to the header file....You have to give [setheader] a db=something parameter (even if you ultimately don't intend to use anything from the database).FWIW, I always add a negative line item for any discount, so that I can display the original cost plus the discount as a seperate line on the final calculation. The only trick here is to delete and readd that line item on each page, so someone doesn't order 6000 widgets to get the discount, then change it to 1 widget.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Alan White wrote:> woops... never sent the code...> > [orderfile cart=[cart]]> [text]afterDiscount=[math][subTotal]-(([subTotal]/100)*[discountFactor])[/math][/text] > > [setheader > cart=[cart]]nonTaxableTotal=[afterDiscount]&taxableTotal=0[/setheader] > [/orderfile]> > This doesn't seem to be writing to the header file....You have to give [setheader] a db=something parameter (even if you ultimately don't intend to use anything from the database).FWIW, I always add a negative line item for any discount, so that I can display the original cost plus the discount as a seperate line on the final calculation. The only trick here is to delete and readd that line item on each page, so someone doesn't order 6000 widgets to get the discount, then change it to 1 widget.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
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:
Running 2 two WebCatalog.acgi's (1996)
Searchable list archive (1997)
Formatting of email on NT (1998)
Problem upgrading from 3.0.8 to 4.0 on MS Windoze 98 / PWS (2000)
Sort Order on a page search (1997)
form data submission gets truncated (1997)
my price won't move (1997)
Couple of techno questions (1999)
question: webmerchant connection (1997)
Simple counter - how? (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
unsubscribe (1997)
Blank orders after update to 5.1 (2004)
ListFiles (1998)
Duplicate Emails being sent (2004)
Looking up two prices in database? (1997)
Reversed words (1997)
Cart Template (1997)
Authenticate (1997)
Redirect (2000)