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, WebMerchant11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>>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, WebMerchant11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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...