Formulas.db / Quantity Discount problem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16767
interpreted = N
texte = Hi All,[showif] does not seem to be working for me in the formulas.db.I am trying to setup a formula for price that subtracts a discount ammount from the regular price if the quantity is greater than a certain ammount.This works when I enter it on the invoice.tmpl page: [math][lookup db=z-b.db&lookInField=sku&value=[sku]&returnField=peritemprice][showif [quantity]>[pricebreakpoint]]-[lookup db=z-b.db&lookInField=sku&value=[sku]&returnField=discountammount][/showif]0+0[/ math]But when I put it in the Formulas.db it returns the regular price less the discount ammount regardless of the quantity. It seems to be ignoring the [showif] tag that qualifies the quantity.Any ideas?TIA, Paul _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business - _\_\_\_\_\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\_ _/_/_/Websites - Children _/ _\_\_\_ _/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Associated Messages, from the most recent to the oldest:

    
  1. Re: Formulas.db / Quantity Discount problem (PCS Technical Support 1998)
  2. Re:Formulas.db / Quantity Discount problem (PCS Technical Support 1998)
  3. Re:Formulas.db / Quantity Discount problem (Paul Uttermohlen 1998)
  4. Re:Formulas.db / Quantity Discount problem (Jay Van Vark 1998)
  5. Formulas.db / Quantity Discount problem (Paul Uttermohlen 1998)
Hi All,[showif] does not seem to be working for me in the formulas.db.I am trying to setup a formula for price that subtracts a discount ammount from the regular price if the quantity is greater than a certain ammount.This works when I enter it on the invoice.tmpl page: [math][lookup db=z-b.db&lookInField=sku&value=[sku]&returnField=peritemprice][showif [quantity]>[pricebreakpoint]]-[lookup db=z-b.db&lookInField=sku&value=[sku]&returnField=discountammount][/showif]0+0[/ math]But when I put it in the formulas.db it returns the regular price less the discount ammount regardless of the quantity. It seems to be ignoring the [showif] tag that qualifies the quantity.Any ideas?TIA, Paul _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business - _\_\_\_\_\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\_ _/_/_/Websites - Children _/ _\_\_\_ _/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Paul Uttermohlen

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:

Dark Horse Comics success story (1997) WebCat2b13MacPlugIn - [include] (1997) WebCatalog can't find database (1997) WebCat Code and WebStar Search? (2000) [WebDNA] help with writefile (2012) Webcat run amuk (2002) Wanted: More Math Functions (or, Can You Solve This?) (1997) Buying sans cart (1997) Reversed words (1997) [CART] inside a [LOOP] (1997) send mail problem? (1997) Hiding HTML and breaking the page (1997) Searching multiple Databases (1997) WebCommerce: Folder organization ? (1997) [ListFiles] Within [LineItems] (2001) verify online (1997) Plugin or CGI or both (1997) [format xs] freeze (1997) WebCat Problem? (1999) Lost Serial Number (2004)