Re: Shipping Formula %

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47484
interpreted = N
texte = Thank you, Marko, for your help:> [if ([subTotal]>0.00) & ([subTotal]<499.99)] > [then]shipCost *.20[/then] > [else] For some reason though, it doesn't work. I tried it as is, I tried changing [subTotal] in the first line to , I tried removing shipCost from the formula since the formula is suppose to give the shipCost value, and I got rid of all the carriage returns and spaces like you said. But no luck. just results in $0.00 on the Invoice.tpl page. A simple formula like *.10 does work in the Formulas.db, but the If formula doesn't. Any ideas why?BTW, why do you use [subTotal] in the If statement, but in the Then statement? Shouldn't they be the same? Also, are we allowed to mix and match the old style syntax with the new?Thanks again, Marc*--*--*--*--*--*--*--*--*--*--*--*--*--*--* Superior Shelving Systems P.O. Box 6949 Tacoma, WA 98406253-756-8138 253-752-1610 faxhttp://www.SuperiorShelving.comThe Storage Shelving Specialists Since 1984 *--*--*--*--*--*--*--*--*--*--*--*--*--*--* ------------------------------------------------------------- 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: Shipping Formula % (Marko Bernyk 2003)
  2. Re: Shipping Formula % (Rob Marquardt 2003)
  3. Re: Shipping Formula % (Donovan Brooke 2003)
  4. Re: Shipping Formula % (Sales 2003)
  5. Re: Shipping Formula % (Marko Bernyk 2003)
  6. Shipping Formula % (Sales 2003)
Thank you, Marko, for your help:> [if ([subTotal]>0.00) & ([subTotal]<499.99)] > [then]shipCost *.20[/then] > [else] For some reason though, it doesn't work. I tried it as is, I tried changing [subTotal] in the first line to , I tried removing shipCost from the formula since the formula is suppose to give the shipCost value, and I got rid of all the carriage returns and spaces like you said. But no luck. just results in $0.00 on the Invoice.tpl page. A simple formula like *.10 does work in the formulas.db, but the If formula doesn't. Any ideas why?BTW, why do you use [subTotal] in the If statement, but in the Then statement? Shouldn't they be the same? Also, are we allowed to mix and match the old style syntax with the new?Thanks again, Marc*--*--*--*--*--*--*--*--*--*--*--*--*--*--* Superior Shelving Systems P.O. Box 6949 Tacoma, WA 98406253-756-8138 253-752-1610 faxhttp://www.SuperiorShelving.comThe Storage Shelving Specialists Since 1984 *--*--*--*--*--*--*--*--*--*--*--*--*--*--* ------------------------------------------------------------- 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/ Sales

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:

Configuring E-mail (1997) [WebDNA] What is lateset ver. of Apache supported? (2008) [WebDNA] How to get a screen size (2009) WebCatalog.acgi quitting with error Type 2 (1998) Problem 2 of 2 (was: Shipping Confusion) (2000) Automatic installation of WebDNA by hosting clients? (2005) WebCatalog can't find database (1997) New command suggestion (was Modifying databasesmanually) (1997) Listfiles on network with NT (2000) WebCat2final1 crashes (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) WebCat for Unix?? (1997) Lastautonumber (2005) [ShowIf] and empty fields (1997) Security for malls with different webmasters (1998) Deleting Orders (1997) [WebDNA] Problem with Trigers. (2013) Date Formats (1997) Major bug report on rootbeer (1997) Variables for chat (1997)