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:

Re:quit command on NT (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) WebCat2 - Getting to the browser's username/password data (1997) Tcp Connect and the disappearing page (2000) search/results scripting (2000) [OT] Theiving B*****ds (2004) WebCat2: Master Counter snippet (1997) Trouble with Showif and Search (1998) EmailFolder Correct Permissions ? (2003) [WebDNA] Error 500 with SUMM=T (2017) Numbers and Numbers and Me (1999) [OT] Airport Network (2003) Error Lob.db records error message not name (1997) WebCat2 beta 11 - new prefs ... (1997) 100% CPU (2003) Limiting user access to .tmpl files (1997) PIXO support (1997) Keep away (1997) send mail problem? (1997) question: writing files textb in webmerch (1997)