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 Song Govinda 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:

    
  1. Re: [WebDNA] Subtotal of SKU's that begin with ... (Ki Song 2009)
  2. Re: [WebDNA] Subtotal of SKU's that begin with ... (Govinda 2009)
  3. [WebDNA] Subtotal of SKU's that begin with ... (Ki Song 2009)
Worked beautifully! Thanks! Ki Song Govinda 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:

Multiple catalog databases and showcart (1997) Append command (2000) More on the email templates (I like it) (1997) Multiple cart additions (1997) WebCatalog can't find database (1997) Bug Report, maybe (1997) Emailer choke (1997) WebCat 3.0 Serial Numbers (1999) WebCatalog can't find database (1997) Nesting Search Within Tag? (1997) &max= (2003) WebCat2b12 CGI Mac - [shownext] problem (1997) Quitting WebMerchant ? (1997) Too Much Info (1998) WebDNA 4.5 not starting on boot? (2002) webcat2b12 CGI -- Date comparisons (1997) building / customizing stores (2000) Plain Language Manual? (1998) OSX SubAdmin Templates (2000) HomePage Caution (1997)