RE: Checkboxes to add to cart...

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19580
interpreted = N
texte = > -----Original Message----- > From: Jim V [mailto:jv1@web-maya.com] > Sent: Saturday, August 22, 1998 1:49 AM > To: WebDNA-Talk@smithmicro.com > Subject: Checkboxes to add to cart... > > > I want to use a checkbox to add multiple items to the shopping cart. > > I know that this has been done before. > > Can some one lend a hand? > > Mail to: jv1@ee.net > Visit my Page: http://www.web-maya.com > > Life IS what You Make it, so Make It GREAT! > In your pondering of life, remember: > 1) Life is what happens, while you are making plans! > 2) Life is what happens as we walk through eternity! > 3) We are all one. 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: Add [index] to the sku or ID for each product. You should also pass the [numfound] to the next page: 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]The results page makes an individual variable for each item sku, the check box for each item and for the total number of items displayed, and passes this entire pile of variables to the next page. The next page loops through all of these variables (which have been conveniently index with [index]) add adds those which have been checked to the shopping cart.I haven't debugged any of this code - I'm typing on the fly so please proceed carefully and don't just cut and paste!Good luck Pat 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)
> -----Original Message----- > From: Jim V [mailto:jv1@web-maya.com] > Sent: Saturday, August 22, 1998 1:49 AM > To: WebDNA-Talk@smithmicro.com > Subject: Checkboxes to add to cart... > > > I want to use a checkbox to add multiple items to the shopping cart. > > I know that this has been done before. > > Can some one lend a hand? > > Mail to: jv1@ee.net > Visit my Page: http://www.web-maya.com > > Life IS what You Make it, so Make It GREAT! > In your pondering of life, remember: > 1) Life is what happens, while you are making plans! > 2) Life is what happens as we walk through eternity! > 3) We are all one. 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: Add [index] to the sku or ID for each product. You should also pass the [numfound] to the next page: 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]The results page makes an individual variable for each item sku, the check box for each item and for the total number of items displayed, and passes this entire pile of variables to the next page. The next page loops through all of these variables (which have been conveniently index with [index]) add adds those which have been checked to the shopping cart.I haven't debugged any of this code - I'm typing on the fly so please proceed carefully and don't just cut and paste!Good luck Pat Pat McCormick

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:

[sendmail] and [formvariables] (1997) SQL Tutorial (1998) Uh...can someone help me out with the b10? (1997) [WebDNA] EMailer timezone bug? (2015) eMailer replacement? (1998) WebCat2 several catalogs? (1997) authorizenet/webmerchant (2000) Enhancement Request for WebCatalog-NT (1996) Explorer 3.0/ Access Denied! (1997) ShowNext example for GeneralStore (1997) Adding Message to Order (1997) Help w/Multi User Admins (1997) Multiple prices (1997) RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) Pref settings? (1998) Return records from another (1997) Can't get appendfile to work (1997) different show next (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) authorizenet (2001)