[shippingtotal] still...
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45756
interpreted = N
texte = This code correctly figures the shipping total on a template:[math show=f]shippingtotal=0[/math][math show=f]ordered=0[/math][orderfile ShoppingCarts/[GetCookie SessionID]][lineitems][math show=f]ordered=[ordered]+[quantity][/math][/lineitems][/orderfile]
Shippingtotal=[showif [ordered]>1][math]shippingtotal=0.00[/math][/showif][showif [ordered]=1][math]shippingtotal=6.50[/math][/showif]On this template, the shopper has the option of clicking a checkbox to delete an item and/or changing the quantity of an item. There is an update button on the page, so the page submits the form data to itself to display the updated cart contents. So, the above code has to go below the [setlineitem] context that accomplishes that.Now, the million dollar question:1) How can I use the above in Formulas.db to properly calculate the shipping charges?2) Can I somehow override the shipping cost calculated in Formulas.db with the above WebDNA in a template?Thanks,-Will-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
This code correctly figures the shipping total on a template:[math show=f]shippingtotal=0[/math][math show=f]ordered=0[/math][orderfile ShoppingCarts/[GetCookie SessionID]][lineitems][math show=f]ordered=[ordered]+[quantity][/math][/lineitems][/orderfile]
Shippingtotal=[showif [ordered]>1][math]shippingtotal=0.00[/math][/showif][showif [ordered]=1][math]shippingtotal=6.50[/math][/showif]On this template, the shopper has the option of clicking a checkbox to delete an item and/or changing the quantity of an item. There is an update button on the page, so the page submits the form data to itself to display the updated cart contents. So, the above code has to go below the [setlineitem] context that accomplishes that.Now, the million dollar question:1) How can I use the above in formulas.db to properly calculate the shipping charges?2) Can I somehow override the shipping cost calculated in formulas.db with the above WebDNA in a template?Thanks,-Will-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
WJ Starck
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:
WebCat2 several catalogs? (1997)
Re[3]: Re[3]: Problem with new formvariables (2000)
Problems getting parameters passed into email. (1997)
Fun with dates (1997)
SSL and reg web* (1997)
WebCat2: Formulas.db question (1997)
WebCatalog for guestbook ? (1997)
DataBaseHelper Flawed (1997)
WebCatalog for guestbook ? (1997)
OK, here goes... (1997)
Truncated numbers (2000)
PC Hub and Web Merchant (1998)
Trouble with formula.db (1997)
Multiple Carts with Mac IE (2002)
Custom WebCat Prefs ... (1997)
RSS Feed (2004)
popups, netscape vs explorer (1997)
math a various prices (1997)
webcat nt (1997)
Webmerchant email misinterpreted tags (1998)