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:

[include ...] behavior (1997) [WebDNA] Amazon EC2 (2009) formula inside database to calculate weights (1997) WebDNA on Fedora 5 -Apache won't start (2006) [lookup] vs. [search] (1998) off topic (1999) [WebDNA] Digest (2008) WebCatalog Hosting (1996) So many lookers, hey smith micro (2003) 2nd WebCatalog2 Feature Request (1996) [WebDNA] XML Help please (2009) [protect admin] (1997) Help! WebCat2 bug (1997) Was cart limit-- Limits (2002) RequiredFields template (1997) preference to using Apache 2.x or 1.3.x with WebDNA 6.0? (2004) WebCat website for developers and hosters (2001) Loops and [index] (1998) [replaceChars] would be nice ... (1997) [LOOKUP] (1997)