Re: splitting up items in a cart

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23660
interpreted = N
texte = Here's my thought:Take the quantities they enter and using a [loop] and [lineitems], go through each item, and add another one to the cart. Something like this:[lineitems] [loop start=1&end=[math][quantity]-1[/math]&advance=1] [addlineitem cart=[cart]&sku=[sku]&db=my.db]quantity=1[/addlineitem] [/loop] [setlineitem cart=[cart]&index=[index]&db=my.db]quantity=1[/setlineitem] [/lineitems]Hope this helps.John Dennis J. Bonsall, Jr. wrote: > > Is there some way to set up a template, that, when a customer selects a > quantity to be added to the cart, to have each individual item put on > its own lineitems within the cart? Here's what I would like to do, but > I have no idea where to start. > > When a customer arrives on a page to select among several items, they > enter the quantities of each item they want. They then click a button, > which takes them to a different page, where they can select the options > for each item they added. Say they select five of one item, and two of > another. The next page will show a total of seven different lineitems > from the cart, and will allow them to select the options for each, > individually. > > I appreciate any suggestions. > > Dennis-- John S. Winningham Genesis Internet Solutions Online Commerce Designer eCommerce Solutions for Business john@genesis-internet.com Let us put the Web to Work for You 409-695-6568 Associated Messages, from the most recent to the oldest:

    
  1. Re: splitting up items in a cart (Peter Ostry 1999)
  2. Re: splitting up items in a cart (John Winningham 1999)
  3. splitting up items in a cart (Dennis J. Bonsall, Jr. 1999)
Here's my thought:Take the quantities they enter and using a [loop] and [lineitems], go through each item, and add another one to the cart. Something like this:[lineitems] [loop start=1&end=[math][quantity]-1[/math]&advance=1] [addlineitem cart=[cart]&sku=[sku]&db=my.db]quantity=1[/addlineitem] [/loop] [setlineitem cart=[cart]&index=[index]&db=my.db]quantity=1[/setlineitem] [/lineitems]Hope this helps.John Dennis J. Bonsall, Jr. wrote: > > Is there some way to set up a template, that, when a customer selects a > quantity to be added to the cart, to have each individual item put on > its own lineitems within the cart? Here's what I would like to do, but > I have no idea where to start. > > When a customer arrives on a page to select among several items, they > enter the quantities of each item they want. They then click a button, > which takes them to a different page, where they can select the options > for each item they added. Say they select five of one item, and two of > another. The next page will show a total of seven different lineitems > from the cart, and will allow them to select the options for each, > individually. > > I appreciate any suggestions. > > Dennis-- John S. Winningham Genesis Internet Solutions Online Commerce Designer eCommerce Solutions for Business john@genesis-internet.com Let us put the Web to Work for You 409-695-6568 John Winningham

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:

Problems getting parameters passed into email. (1997) Again: tcpconnect problem with authorize.net (2003) AOL (1999) Forbidden CGI Error (1997) mass mailing and mass hysteria (1998) [WebDNA] Strange error (2014) Help name our technology! I found it (1997) [setheader] within [orderfile] (2001) View Source from cache (1997) webcat serving multiple copies of same db from ram (2000) [WebDNA] Feature Request: [returnhtml] (2016) OT:looking for developers with solutions (2000) [WebDNA] OT - some girls like guys for their WebDNA (2010) Server IP address-thanks (2004) rotating thumbnails (1997) Netscape (1997) Summarizing results. Is there a shortcut? (1999) Help! WebCat2 bug (1997) attn: smitmicro - cart limitation (2002) Navigator 4.01 (1997)