RE: Checkboxes to add to cart...

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19582
interpreted = N
texte = On 8/22/98 10:30 AM, Pat McCormick so noted...>On your multi-item display page, possible the search results, Start with a >form for collecting all the items the shopper wishes to add. Add [index] to >the name of each item's check box: name=addthis[index]> Add [index] to the sku or ID for each product. > You should also pass >the [numfound] to the next page: value=[numfound]> > >On the destination page, use a loop to add the checked items to the cart: > >[loop start=1&end=[loopcount]&advance=1] >[showif [addthis[index]]=T] > [add db=products.db&sku=[sku[index]]] >[/showif] >[/loop]This should work, but you'll need an [interpret] to get the correct value from the form variable:[loop start=1&end=[loopcount]&advance=1] [showif [interpret][addthis[index]][/interpret]=T] [add db=products.db&sku=[interpret][sku[index]][/interpret]] [/showif] [/loop]Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. RE: Checkboxes to add to cart... (Jay Van Vark 1998)
  2. RE: Checkboxes to add to cart... (Rob Marquardt 1998)
  3. Re: Checkboxes to add to cart... (PCS Technical Support 1998)
  4. RE: Checkboxes to add to cart... (Pat McCormick 1998)
On 8/22/98 10:30 AM, Pat McCormick so noted...>On your multi-item display page, possible the search results, Start with a >form for collecting all the items the shopper wishes to add. Add [index] to >the name of each item's check box: name=addthis[index]> Add [index] to the sku or ID for each product. > You should also pass >the [numfound] to the next page: value=[numfound]> > >On the destination page, use a loop to add the checked items to the cart: > >[loop start=1&end=[loopcount]&advance=1] >[showif [addthis[index]]=T] > [add db=products.db&sku=[sku[index]]] >[/showif] >[/loop]This should work, but you'll need an [interpret] to get the correct value from the form variable:[loop start=1&end=[loopcount]&advance=1] [showif [interpret][addthis[index]][/interpret]=T] [add db=products.db&sku=[interpret][sku[index]][/interpret]] [/showif] [/loop]Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

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:

Truncated value after space - refresh my memory.... (1997) Plugin or CGI or both (1997) PCS Emailer's role ? (1997) search across ip/domain addresses? (1998) Summary search -- speed (1997) Using Checkbox (2000) Emailer Error 550 (Was Strange Crash) (1998) WebCat2: Items xx to xx shown, etc. (1997) I hate talking to myself on this list (2004) WebCatalog and Macromedia Flash (1998) Showif date > other date (2004) Getting total number of items ordered (1997) [WebDNA] centos 5.2 which is better 32bit or 64 bit (2009) Re1000001: Setting up shop (1997) WebCatalog-NT?'s (1996) [date format] w/in sendmail (1997) format and math on the fly (1998) suffix mapping for NT? (1997) Re:Emailer tracking (1997) Using Cookie for client specific info? (1997)