Re:my First Ship table

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20963
interpreted = N
texte = Okay I now realize that my first post had numberous errors in it. But now I have corrected all the code that I Frankenstiened from various posts and examples. But it still doesn't seem to work. I guess what I don't understand is when exactly webcat looks into Formulas.db, when an item is added to the cart, or when the shopping cart is submitted to Invoice.tpl. What I am trying to do in formulas.db is have it total up quantity, and match that total to the [shipMeth] field and return [shipCost] which will then become [shipTotal] on invoice.tpl and be added to [subTotal] for the [grandTotal]my formula in formulas.db shipCost db=CustomShipping.db&eqShipMethdatarq=[ShipMeth]&eqQuantitydatarq=[math][lineit ems][quantity]+[/lineitems]0[/math]][FoundItems][shipCost][/FoundItems][/Search]Here is what customShipping.db looks like..... Quantity shipMeth shipCost 1 Ups 5.75 1 UpsBlue 12 1 FedEx 15 1 Inernational 20 2 Ups 5.75 2 UpsBlue 12 2 FedEx 15 2 Inernational 20 If I drop the [shipMeth] tag into invoice.tpl it will show me the selected method Ups ..etc. But [shiptotal] is not being affected. It won't even display [shipCost].I was thinking I could try to do this as a Lookup, but the way I understand it you can't lookup multiple fields.Can anyone see the problem?Thanks Tim Taylor Webmaster http://www.growzone.com Tim@versa.com t h e s i t e f o r t h e g r e e n i n d u s t r y 1.888.800.5904 Associated Messages, from the most recent to the oldest:

    
  1. Re:my First Ship table (PCS Technical Support 1998)
  2. Re:my First Ship table (Tim Taylor 1998)
  3. Re:my First Ship table (PCS Technical Support 1998)
  4. Re:my First Ship table (Tim Taylor 1998)
Okay I now realize that my first post had numberous errors in it. But now I have corrected all the code that I Frankenstiened from various posts and examples. But it still doesn't seem to work. I guess what I don't understand is when exactly webcat looks into formulas.db, when an item is added to the cart, or when the shopping cart is submitted to Invoice.tpl. What I am trying to do in formulas.db is have it total up quantity, and match that total to the [shipMeth] field and return [shipCost] which will then become [shipTotal] on invoice.tpl and be added to [subTotal] for the [grandTotal]my formula in formulas.db shipCost db=CustomShipping.db&eqShipMethdatarq=[ShipMeth]&eqQuantitydatarq=[math][lineit ems][quantity]+[/lineitems]0[/math]][founditems][shipCost][/FoundItems][/Search]Here is what customShipping.db looks like..... Quantity shipMeth shipCost 1 Ups 5.75 1 UpsBlue 12 1 FedEx 15 1 Inernational 20 2 Ups 5.75 2 UpsBlue 12 2 FedEx 15 2 Inernational 20 If I drop the [shipMeth] tag into invoice.tpl it will show me the selected method Ups ..etc. But [shiptotal] is not being affected. It won't even display [shipCost].I was thinking I could try to do this as a Lookup, but the way I understand it you can't lookup multiple fields.Can anyone see the problem?Thanks Tim Taylor Webmaster http://www.growzone.com Tim@versa.com t h e s i t e f o r t h e g r e e n i n d u s t r y 1.888.800.5904 Tim Taylor

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:

removelineitems (2000) System 8.5.1 question (1999) WebCatalog for Postcards ? (1997) WebCatalog can't find database (1997) blank page from template (1997) Webcatalog Plugin for Quid Pro Quo not working (2000) Search Folder? (1998) PCS Frames (1997) Email problem (1998) WC1.6 to WC2 date formatting (1997) WC Database Format (1997) HomePage Caution (1997) [WebDNA] WebDNA & Mod_rewrite (2010) [ot] html question (2000) One tough Cookie (1998) truncating email part II (1997) PCS Frames (1997) Grepping to remove text & code (2004) WebCatalog Mac 2.1b3 (1997) cart (1997)