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 MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
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 MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
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...