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 variablesand should be in the unitShipCost formula or you need a [lineitems] loop inthe shipcost formula to get to them...I am not sure if you would like this to happen for each lineitem seperatelyor for all of them in the base shipping cost... I think you might just havethe formula in the wrong one -- move it to the unitShipCost and see if thatis 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.>>KevinJay Van Vark *******************************Pacific Coast Software | eCommerce (WebCatalog)11770 Bernardo Plaza Court | Site Hosting & DevelopmentSuite 453 | http://www.smithmicro.comSan Diego, CA 92128 *******************************619.675.1106** PGP key available upon request. **
Associated Messages, from the most recent to the oldest:
|
- Re:shipping code (Jay Van Vark 1998)
|
I don't follow - similar to [quantity] - [textc] etc are LINEITEM variablesand should be in the unitShipCost formula or you need a
[lineitems] loop inthe shipcost formula to get to them...I am not sure if you would like this to happen for each lineitem seperatelyor for all of them in the base shipping cost... I think you might just havethe formula in the wrong one -- move it to the unitShipCost and see if thatis 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.>>KevinJay Van Vark *******************************Pacific Coast Software | eCommerce (WebCatalog)11770 Bernardo Plaza Court | Site Hosting & DevelopmentSuite 453 | http://www.smithmicro.comSan 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:
[replaceChars] would be nice ... (1997)
Showif, Hideif reverse logic ? (1997)
Using [Showif] tag. Mac (1997)
[sendmail] questions... (1997)
WebDNA v6.0 (2004)
[WebDNA] Can't see were it's wrong.... (2017)
Nested tags count question (1997)
RE: ShowNext Command (1997)
Text limits in NT version? (1997)
[WebDNA] User sessions - cookies only or cookies and a sessions.db? (2016)
Sort Order on a page search (1997)
Cross OS Compatible HTML emailing (2003)
Hiding HTML and breaking the page (1997)
[ShowIf] and empty fields (1997)
Showing unopened cart (1997)
DataBaseHelper Flawed (1997)
attachment (2000)
Re:Virtual hosting and webcatNT (1997)
More than one db with the same namn (was: WC2f3) (1997)
month or year in date field in lineitems continued... (1998)