Re: Now you see it now you donīt

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15442
interpreted = N
texte = >I have this lines in the ShopingCart.tmpl file... > >[lineItems] > >[title] > >$[format .2f][price][/format] >$[format .2f][math][quantity]*[price][/math][/format] >$[unitShipCost] >href=ShoppingCart.tmpl$remove?db=store.db&sku=[url][sku][/url]&cart=[cart] >>Remove Item [lineIndex] >[/lineItems] > >When the browser shows this page I can see the title of the product I >added, but the price is $0.00 > >Do I miss something? Yes ... :)You have a price record in your formulas.db, right?Whenever the [price] tag appears inside a [lineitems] context, as it does above, that price formula automatically overrides the [price] value from the database.The solution is to remove the price record in the formulas.db, because when there's no record for a price formula in the formulas.db, WebCat cannot use it to override the [price] from the database ... :)Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Associated Messages, from the most recent to the oldest:

    
  1. Re: Now you see it now you donīt (listas 1997)
  2. Re: Now you see it now you donīt (Kenneth Grome 1997)
  3. Now you see it now you donīt (listas 1997)
  4. Re: Now you see it now you donīt (Grant Hulbert 1997)
  5. Re: Now you see it now you donīt (Kenneth Grome 1997)
>I have this lines in the ShopingCart.tmpl file... > >[lineitems] > >[title] > >$[format .2f][price][/format] >$[format .2f][math][quantity]*[price][/math][/format] >$[unitShipCost] >href=ShoppingCart.tmpl$remove?db=store.db&sku=[url][sku][/url]&cart=[cart] >>Remove Item [lineIndex] >[/lineItems] > >When the browser shows this page I can see the title of the product I >added, but the price is $0.00 > >Do I miss something? Yes ... :)You have a price record in your formulas.db, right?Whenever the [price] tag appears inside a [lineitems] context, as it does above, that price formula automatically overrides the [price] value from the database.The solution is to remove the price record in the formulas.db, because when there's no record for a price formula in the formulas.db, WebCat cannot use it to override the [price] from the database ... :)Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Kenneth Grome

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:

plugin-acgi, different results (1997) select multiple (1997) [WebDNA] HTML Symbol Entities (2009) 5.0 tips etc (2003) Bug or syntax error on my part? (1997) WebCatalog can't find database (1997) problem with NT beta (1997) READFILE command? (1998) (no subject) (2000) Resume Catalog ? (1997) no global [username] or [password] displayed ... (1997) Moment of Thanks (1997) Web Catalog 2 demo (1997) [WebDNA] WebDNA Roll Call (2013) Frames and WebCat (1997) Sort Order on a page search (1997) [ShowNext] feature in 2.0 (1997) [WebDNA] Set UID/GID/Permissions (2009) Forbidden CGI Error (1997) Web*3 virtual hosting Webcatalog problem (1998)