Re:shipping code

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16763
interpreted = N
texte = I don't follow - similar to [quantity] - [textc] etc are LINEITEM variables and should be in the unitShipCost formula or you need a [lineitems] loop in the shipcost formula to get to them...I am not sure if you would like this to happen for each lineitem seperately or for all of them in the base shipping cost... I think you might just have the formula in the wrong one -- move it to the unitShipCost and see if that is what you are looking for... >Hi, > >Here is how my code works out to do shipping for the following (in my >formulas.db): > >1 box to Los Angeles via Express = 15.00 >1 box to Los Angeles via Regular = 5.00 > >shipcost [showif [shipmeth]=regular][showif [shipto]=LA][showif >[textc]=1]5.00[/showif][/showif][/showif] [showif >[shipmeth]=express][showif [shipto]=LA][showif >[textc]=1]15.00[/showif][/showif][/showif] > >Where [textc] is set in a [setlineitems] as equaling to the [quantity] > >I tried replacing [textc] with totqty as in the following, > >[MATH show=f]totQty=0[/math] >[lineitems] >[MATH show=f]totQty=totQty+[quantity][/math] >[/lineitems] > >but that didn't work. > >Kevin Jay Van Vark ******************************* Pacific Coast Software | eCommerce (WebCatalog) 11770 Bernardo Plaza Court | Site Hosting & Development Suite 453 | http://www.smithmicro.com San Diego, CA 92128 ******************************* 619.675.1106** PGP key available upon request. ** Associated Messages, from the most recent to the oldest:

    
  1. Re:shipping code (Jay Van Vark 1998)
I don't follow - similar to [quantity] - [textc] etc are LINEITEM variables and should be in the unitShipCost formula or you need a [lineitems] loop in the shipcost formula to get to them...I am not sure if you would like this to happen for each lineitem seperately or for all of them in the base shipping cost... I think you might just have the formula in the wrong one -- move it to the unitShipCost and see if that is what you are looking for... >Hi, > >Here is how my code works out to do shipping for the following (in my >formulas.db): > >1 box to Los Angeles via Express = 15.00 >1 box to Los Angeles via Regular = 5.00 > >shipcost [showif [shipmeth]=regular][showif [shipto]=LA][showif >[textc]=1]5.00[/showif][/showif][/showif] [showif >[shipmeth]=express][showif [shipto]=LA][showif >[textc]=1]15.00[/showif][/showif][/showif] > >Where [textc] is set in a [setlineitems] as equaling to the [quantity] > >I tried replacing [textc] with totqty as in the following, > >[MATH show=f]totQty=0[/math] >[lineitems] >[MATH show=f]totQty=totQty+[quantity][/math] >[/lineitems] > >but that didn't work. > >Kevin Jay Van Vark ******************************* Pacific Coast Software | eCommerce (WebCatalog) 11770 Bernardo Plaza Court | Site Hosting & Development Suite 453 | http://www.smithmicro.com San Diego, CA 92128 ******************************* 619.675.1106** PGP key available upon request. ** Jay Van Vark

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:

WebStar Secure on other machine (1997) WebDNA 5.0 upgrade policies (2003) carriage returns in data (1997) Errata: WCS Newbie question (1997) WebCat2: multiple currency support (1997) forgot the subject - apache/linux8/WC (2002) Data Entry ... Excel Style ... How To? (2001) Looking for WebSTAR bomb at startup (2000) Question re: FlushDatabases (1997) Sort Order on a page search (1997) Almost a there but..bye bye NetCloak (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Large databases in WebCat (1997) Web Catalog not encrypting/decrypting problem (1998) Customer - again (1998) redirect within the ErrorMessages.db (2003) IE Cache Problems... (1999) WebCatalog NT (1996) WCS Newbie question (1997) Meet your competition (2000)