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:

Problem (1997) Navigator 4.01 (1997) Large databases in WebCat (1997) Date Problems (2000) Upgrading to 4.0 on Windoze 98 (2000) Multiple download orders of the same product? (1997) problems with 2 tags shakur (1997) can we get string variables? (1998) [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (2011) default value from Lookup (was Grant, please help me) (1997) [WebDNA] Dates (2009) Math (1997) Trigger Validation Text Broken (2003) details (2003) company names not begin with a letter (2005) Q: old cart serial problem (2000) Nesting format tags (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Tags in the header (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)