Re: [subtotal]
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30159
interpreted = N
texte = If you alter your Price formula in Formulas.db to account for the differentsizes and colors, you can store the actual price in the Price field and WebCatwill calculate the [subtotal] for you.For example, in Formulas.dbPrice [ShowIf [color]=RED][Math][myprice]*2[/math][/ShowIf] [ShowIf [Size]=XXXL][Math][myprice]*2[/math][/ShowIf]etc., where there is a single tab between Price and the formula and the entireformula appears on a single line. I would recommend working this out in atemplate first, then replacing the formula. You can even use [LookUp] in theformula to get data from other tables.HTHJohn Peacock____________________Reply Separator____________________Subject: [subtotal] Author:
(WebCatalog Talk)Date: 4/6/2000 5:05 PMhi all,i'm trying to make the cart calculate the [subtotal] where i'd like todetermine the [price]. Since i have different prices for the same productsbased on sizes and colors i have to use different tag then [price].I did looked at the reference and there it says that i have to overrideboth nonTaxableTotal and taxableTotal in order to make the subTotal tag tocalculate all the new prices i have in the cart.I saw one posting in the PCS talk from 1999/04/07 with subject: [subtotal]and [grandtotal] erreor, but there wasn't any follow up.So i was wondering how can i override both taxableTotal andnontaxableTotal in order to make this work. Help please.Thanks.-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
If you alter your Price formula in formulas.db to account for the differentsizes and colors, you can store the actual price in the Price field and WebCatwill calculate the [subtotal] for you.For example, in formulas.dbPrice [ShowIf [color]=RED][math][myprice]*2[/math][/ShowIf] [ShowIf [Size]=XXXL][math][myprice]*2[/math][/ShowIf]etc., where there is a single tab between Price and the formula and the entireformula appears on a single line. I would recommend working this out in atemplate first, then replacing the formula. You can even use [lookup] in theformula to get data from other tables.HTHJohn Peacock____________________Reply Separator____________________Subject: [subtotal] Author: (WebCatalog Talk)Date: 4/6/2000 5:05 PMhi all,i'm trying to make the cart calculate the [subtotal] where i'd like todetermine the [price]. Since i have different prices for the same productsbased on sizes and colors i have to use different tag then [price].I did looked at the reference and there it says that i have to overrideboth nonTaxableTotal and taxableTotal in order to make the subTotal tag tocalculate all the new prices i have in the cart.I saw one posting in the PCS talk from 1999/04/07 with subject: [subtotal]and [grandtotal] erreor, but there wasn't any follow up.So i was wondering how can i override both taxableTotal andnontaxableTotal in order to make this work. Help please.Thanks.-------------------------------------------------------------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
jpeacock@univpress.com
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:
Sorting by date (1997)
[WebDNA] WebDNA v7 linux setup with Lighttpd (2011)
Sense/Disallow HTML tags during $Append (1997)
To Err or Not Custom Error (1999)
URL problem (2007)
NT Manual (1997)
Cookie woes with Mac IE4 (1998)
UPS went bye bye (2006)
Stinkin' [Referrer] (1998)
Signal Raised Error (1997)
PSC recommends what date format yr 2000??? (1997)
Thanks Grant (1997)
change the number format (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997)
Combining search criteria (2000)
Extended [ConvertChars] (1997)
DRC (2004)
Shoppingcart passing price (2000)
Almost a there but..bye bye NetCloak (1997)
How To question on setting up downloads (1997)