Re: Multiple cart additions

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14005
interpreted = N
texte = > >error returned: > >Error: the 'add' command requires that you specify a skuThe Add command is not designed to add more than one SKU, so you need to change this to simply a ShowCart command.In WebCatalog, there are 2 ways to do all the shopping cart stuff: you can either send commands like Add Remove Purchase as the command parameter, or you can embed [AddLineItem] [RemoveLineItem] [Purchase] tags inside a page. While the form-based 'command' versions of these features are restricted to a single operation (adding 1 sku, purchasing 1 cart), the embedded tag versions can do lots of things at once because you can stick a whole bunch of them into your template, one after the other.So get rid of the Add command entirely, and embed [AddLineItem] tags into the next page instead. Use FormVariables to list out (enumerate) all the checkboxes that have been checked, and inside the [FormVariables] loop, do an [AddLineItem] to cause that item to be added. Notice in the online docs that FormVariables has a special feature that lets you enumerate only the form variables that begin with a particular word, so you can weed out the variables you don't care about (the ones that don't begin with 'add')Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Multiple cart additions (Bob Minor 1997)
  2. Re: Multiple cart additions (Grant Hulbert 1997)
  3. Re: Multiple cart additions (Grant Hulbert 1997)
  4. Re: Multiple cart additions (bob 1997)
  5. Re: Multiple cart additions (bob 1997)
  6. Re: Multiple cart additions (bob 1997)
  7. Re: Multiple cart additions (Grant Hulbert 1997)
  8. Re: Multiple cart additions (bob 1997)
  9. Re: Multiple cart additions (bob 1997)
  10. Re: Multiple cart additions (Grant Hulbert 1997)
  11. Multiple cart additions (bob 1997)
> >error returned: > >Error: the 'add' command requires that you specify a skuThe Add command is not designed to add more than one SKU, so you need to change this to simply a ShowCart command.In WebCatalog, there are 2 ways to do all the shopping cart stuff: you can either send commands like Add Remove Purchase as the command parameter, or you can embed [addlineitem] [removelineitem] [purchase] tags inside a page. While the form-based 'command' versions of these features are restricted to a single operation (adding 1 sku, purchasing 1 cart), the embedded tag versions can do lots of things at once because you can stick a whole bunch of them into your template, one after the other.So get rid of the Add command entirely, and embed [addlineitem] tags into the next page instead. Use FormVariables to list out (enumerate) all the checkboxes that have been checked, and inside the [formvariables] loop, do an [addlineitem] to cause that item to be added. Notice in the online docs that FormVariables has a special feature that lets you enumerate only the form variables that begin with a particular word, so you can weed out the variables you don't care about (the ones that don't begin with 'add')Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

RequiredFields template (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Crazy FROM Email Address with Orders, Help! (2004) How To get Some Help (2003) Sort Order on a page search (1997) RE: Nesting [ListFiles] (1998) [WebDNA] for a rainy day.. if ever/when the hood is up again (2011) [WebDNA] [OT] the "Work in progress" thread. (2009) [Sum] function? (1997) Email...Thanks (1997) WebMerchant 1.6 and SHTML (1997) Linux uninstall / reinstall (2003) SKU lookup (1997) Information on Vieworders.tpl (1998) Nested tags count question (1997) tricky embedded[showifs/hideifs] (w/ code.. long) (2000) multiple credit card merchant accounts/processors (1997) Not really WebCat (1997) WebCat2: Items xx to xx shown, etc. (1997) X etc.... (1999)