Re: Adding Multiple Items to Shopping Cart from a Results page
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15364
interpreted = N
texte = At 10:25 AM -0800 12/3/97, Jim McDonald is rumored to have typed:> List Subscribers:>> We need to be able to click on multiple Add To Cart items on a single>page and not have to keep going> back and forth to the same page to add additional items. There are>currently four steps involved in the> process of adding items from a found list. Is there any way to allow a>user to add multiple items to the> shopping cart at one time from a given page or must they continually have>to go back and forth?Here's what I do:I have a page that generates a list of orderable items. It's in a SEARCHcontext, so I utilize the FOUNDITEMS loop function to call up the SKU andTITLE fields. I put the items inside a form, and put a checkbox next toeach item so that the code looks:
The customer will check off whatever they want to order and hit the submitbutton to go to the Cart.html page.At the top of the CART.html page (befor the tag), I put thefollowing code:[FORMVARIABLES name=ORD&exact=F][ADDLINEITEM CART=[CART]&SKU=[VALUE]&db=MYDB.db]quantity=1[/ADDLINEITEM][/FORMVARIABLES]The [FORMVARIABLES] loop goes through all of the submitted arguments thatstart with ORD (which is all of the items that the customer wants to buy)and adds them to the shopping cart using the ADDLINEITEM context.Then I display the content of the cart in the of the template, withoptions to edit quantity, etc.MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:
At 10:25 AM -0800 12/3/97, Jim McDonald is rumored to have typed:> List Subscribers:>> We need to be able to click on multiple Add To Cart items on a single>page and not have to keep going> back and forth to the same page to add additional items. There are>currently four steps involved in the> process of adding items from a found list. Is there any way to allow a>user to add multiple items to the> shopping cart at one time from a given page or must they continually have>to go back and forth?Here's what I do:I have a page that generates a list of orderable items. It's in a SEARCHcontext, so I utilize the FOUNDITEMS loop function to call up the SKU andTITLE fields. I put the items inside a form, and put a checkbox next toeach item so that the code looks:
The customer will check off whatever they want to order and hit the submitbutton to go to the Cart.html page.At the top of the CART.html page (befor the tag), I put thefollowing code:[FORMVARIABLES name=ORD&exact=F][ADDLINEITEM CART=
[cart]&SKU=[VALUE]&db=MYDB.db]quantity=1[/ADDLINEITEM][/FORMVARIABLES]The
[formvariables] loop goes through all of the submitted arguments thatstart with ORD (which is all of the items that the customer wants to buy)and adds them to the shopping cart using the ADDLINEITEM context.Then I display the content of the cart in the of the template, withoptions to edit quantity, etc.MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston
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:
Extended [ConvertChars] (1997)
WebCat2b15MacPlugin - [protect] (1997)
Limiting user access to .tmpl files (1997)
Checking Webdna is running (2007)
WebCat2: Items xx to xx shown, etc. (1997)
Plain Language Manual? (1998)
RE: Re:Has this happened to you? (1997)
show all problem (1997)
fresh eyes needed. Append won't work. (2000)
RE: OK, here goes... (1997)
upgrading (1997)
[WebDNA] 301 redirect (2016)
Bug Report, maybe (1997)
summ=T (2003)
W* 4.2 / WebCat (TPro) 3.0.5b / OS 8.5.1 / BW G3 (2000)
using showpage and showcart commands (1996)
Search/sort in URL Was: GuestBook example (1997)
WebDNA novelties (was: WebDNA Video Poker) (2007)
WebCat.acgi from /cgi-bin/? (1997)
referrer variable (1997)