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:

SKU lookup (1997) [Sum] function? (1997) Formatting ModDate (2000) [WebDNA] [WSC] WebDNA Development Summit (2014) webcat and webkitty votes needed (1997) Modify instead of Add (2000) For those of you not on the WebCatalog Beta... (1997) How To question on setting up downloads (1997) PSC recommends what date format yr 2000??? (1997) RE: AccountAuthorizer doesn't seem to work (1997) Updating fields from different platforms (1998) Adding multiple items to Cart at one time, & append contextproblem (1998) Signal Raised (1997) Re:2nd WebCatalog2 Feature Request (1996) My slower response (1997) Re[2]: Support suggestions - long (was politeness, et al) (2000) For those of you not on the WebCatalog Beta... (1997) Re:Can anyone help me with this shipping thing? (1998) Getting Emailer to send mail (1997) Merging databases (1997)