Re: [WebDNA] Subtotal of SKU's that begin with ...
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101909
interpreted = N
texte = Worked beautifully! Thanks!Ki SongGovinda wrote:> put an [orderfile] context and in there put a [lineitems] loop and > inside that use a conditional (like [showif] to check against the > product title (or wherever you are storing that string you want to know > if it starts with "AZ") (in [textA]?)> > just rough and loosely like this (you can fix and fiddle with it) > (write the list again if more help needed)-> -------------------------------------------------------------------> [math show=F]myAZsubtotal=0[/math]> > [orderfile ..]> [lineitems]> > [showif [URL][textA][/URL]~AZ]> [math show=F]myAZsubtotal=[myAZsubtotal]+[price][/math]> [/showif]> > [/lineitems]> [/orderfile]> -------------------------------------------------------------------> > -Govinda> > On Feb 4, 2009, at 1:55 PM, Ki Song wrote:> >> How would I get the subtotal of all items that begin with AZ in the >> shopping cart into a variable?>>>> -- >> Ki Song>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list
.>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
Worked beautifully! Thanks!Ki SongGovinda wrote:> put an [orderfile] context and in there put a [lineitems] loop and > inside that use a conditional (like [showif] to check against the > product title (or wherever you are storing that string you want to know > if it starts with "AZ") (in [textA]?)> > just rough and loosely like this (you can fix and fiddle with it) > (write the list again if more help needed)-> -------------------------------------------------------------------> [math show=F]myAZsubtotal=0[/math]> > [orderfile ..]> [lineitems]> > [showif [url][textA][/URL]~AZ]> [math show=F]myAZsubtotal=[myAZsubtotal]+[price][/math]> [/showif]> > [/lineitems]> [/orderfile]> -------------------------------------------------------------------> > -Govinda> > On Feb 4, 2009, at 1:55 PM, Ki Song wrote:> >> How would I get the subtotal of all items that begin with AZ in the >> shopping cart into a variable?>>>> -- >> Ki Song>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Ki Song
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:
Tab Charactor (1997)
Kinda [OT] Leopard & iTools (2008)
Phonetic Search (2001)
Progress !! WAS: Trouble with formula.db (1997)
Dynamic Generation of PDFs? (2003)
RE: [countChars] from
test (2002)
Another issue with [Date format] (1998)
WebCat and Personal Web Server (1998)
A question on sub-categories (1997)
WebMerchant? (1998)
[WebDNA] Authorize working connection... (2019)
Dumb Question about Docs (1997)
writing db to disk (1997)
International Orders (1998)
OT ImageMagick and Thumbnails (2003)
SiteGuard Admin Feature ? (1997)
IE Cache Problems... (1999)
HTML encoding in URLs (1997)
Ship Cost Not working (2000)