Adding muliple sku + quantities

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23478
interpreted = N
texte = Hello everyone, Today I'm trying to build a form that will display 30 items at a time with blank quantity fields. The user will just fill in the quantities on any of the items and hit add to order. Now I need the quantities and the sku to add each item so at the top of the shoping cart page I have..Courier[FormVariables] [showif [name]=sku][math show=f]x([index+1])=[value][/math][/showif] [showif [name]=quantity][showif [value]>0][addlineitem cart=[cart]&db=[db]&sku=[math]x([index])[/math]]quantity=[value][/addlineitem][/showif][/showif][/FormVariables]When the form variables loop the the sku to be added is on the index before its quantity.I'm trying to set a [math] variable (in in version 2.6 here) that can be identified from the next indexBut I get Error: couldn't find SKU '' in product databaseI have tried several incarnations of the same code including[FormVariables] [showif [name]=sku][math show=f]x[math show=f][index+1][/math]=[value][/math][/showif] [showif [name]=quantity][showif [value]>0][addlineitem cart=[cart]&db=[db]&sku=[math]x[index][/math]]quantity=[value][/addlineitem][/showif][/showif][/FormVariables] With no joyAny Ideas? ________________________Tim Taylor Web Development ManagerTim@versa.com VersaCom Inc.Http://www.growzone.comThe site for the geeen Industry Associated Messages, from the most recent to the oldest:

    
Hello everyone, Today I'm trying to build a form that will display 30 items at a time with blank quantity fields. The user will just fill in the quantities on any of the items and hit add to order. Now I need the quantities and the sku to add each item so at the top of the shoping cart page I have..Courier[formvariables] [showif [name]=sku][math show=f]x([index+1])=[value][/math][/showif] [showif [name]=quantity][showif [value]>0][addlineitem cart=[cart]&db=[db]&sku=[math]x([index])[/math]]quantity=[value][/addlineitem][/showif][/showif][/FormVariables]When the form variables loop the the sku to be added is on the index before its quantity.I'm trying to set a [math] variable (in in version 2.6 here) that can be identified from the next indexBut I get Error: couldn't find SKU '' in product databaseI have tried several incarnations of the same code including[formvariables] [showif [name]=sku][math show=f]x[math show=f][index+1][/math]=[value][/math][/showif] [showif [name]=quantity][showif [value]>0][addlineitem cart=[cart]&db=[db]&sku=[math]x[index][/math]]quantity=[value][/addlineitem][/showif][/showif][/FormVariables] With no joyAny Ideas? ________________________Tim Taylor Web Development ManagerTim@versa.com VersaCom Inc.Http://www.growzone.comThe site for the geeen Industry Tim Taylor

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:

Introduction/Tutorial/QuickStart (1997) WebCat hosting providers? (1997) Problem with Formulas.db (1998) [WebDNA] WebDNA slow processing (2011) Search in 2 or more catalogs (1997) Sorting problem (2002) Error: Permision deny. (2005) Accepting credit cards (1997) Windows-based Code Editor (2002) NT or Mac (1997) [WebDNA] Listwords and newline (2011) Character limit in [Search]? (1998) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) OT: Shell Script (2005) Fed Ex Rate Charts (2003) Review comparison by PC Magazine: Open for On-lineBusiness (1997) Great product and great job ! (1997) syntax question, not in online refernce (1997) problems with 2 tags shakur (1997) Web Catalog Book? (1998)