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:

Referrer field to header field conversion (1997) AOL and referrers on target=_blank (2000) Unix DB Permission Error (2002) [shownext] and descending order (1997) Causes Site to Crash... (2000) OT: Sendmail (2005) writing orders to a db (1997) PCS Emailer's role ? (1997) Help name our technology! (1997) Error Lob.db records error message not name (1997) Heads up, cookies *may* be outlawed in Europe (2001) No. of items in shopping cart (2000) no [search] with NT (1997) New Command prefs ... (1997) [WebDNA] Sorry, WebCatalog server not running. (2008) required fields (1998) OT: javascript help (2003) [CART] inside a [LOOP] (1997) webCat craps httpd (2005) Setting up shop (1997)