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 ammountfrom the regular price if the quantity is greater than a certain ammount.This works when I enter it on the invoice.tmpl page:[math][lookupdb=z-b.db&lookInField=sku&value=[sku]&returnField=peritemprice][showif[quantity]>[pricebreakpoint]]-[lookupdb=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 thediscount 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:
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 ammountfrom the regular price if the quantity is greater than a certain ammount.This works when I enter it on the invoice.tmpl page:[math][lookupdb=z-b.db&lookInField=sku&value=[sku]&returnField=peritemprice][showif[quantity]>[pricebreakpoint]]-[lookupdb=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 thediscount 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:
Sku numbers (1997)
More help for discount pricing (1998)
creating a ShipCosts database (1997)
Displaying photo attached to first record (1997)
More on the email templates (I like it) (1997)
Templates on Unix & CGI on Mac? (1997)
Paths, relative paths, webstar server setup and security (Mac) (1997)
[WebDNA] Bug reporting (2009)
question: back button prevention (1997)
Carts & Refering URLs (1997)
Execute Applescript (1997)
Users.db [encrypt seed=????] (1998)
Quitting WebMerchant ? (1997)
Summing fields (1997)
Associative lookup style? (1997)
Multiple Newcarts (1996)
WebCat B13 Mac CGI -- Frames question (1997)
Form Weirdness (2002)
Email (2000)
So Simple (2005)