numero = 23556
interpreted = N
texte = CourierI'm really stumped on thisone, I'm displaying 30 items in a single form with < <The user fills in all the quantities he wants and submits the wholepage.Now on the shopping cart page I can get everything to display likethis..[FormVariables name=quantity&exact=T] [showif [value]>1][math show=f]n=[index]-1[/math][mathshow=f]v=[value][/math] [formvariables name=sku&exact=t][hideif [index]![math]n[/math]]sku=[value] quantity=[math]v[/math][/hideif][/formVariables][/showif][/formVariables]This will display sku=(the sku's that had a quantity greater then zero)quantity=(the number that was filled in.Now I'm trying to add these as line items so I use..[FormVariables name=quantity&exact=T] [showif [value]>1][math]n=[index]-1[/math][math]v=[value][/math] [formvariables name=sku&exact=t][hideif [index]![math]n[/math]][addlineitemcart=[cart]&db=avail.txt&sku=[value]]quantity=[math]v[/math][/addlineitem][/hideif][/formVariables][/showif][/formVariables]But they don't get added, and in my error log I get this...02/10/1999 14:39:31 [command] [ipaddress] Error:Error: expected [/APPLICATION], but found [/showif] insteadWhich usually means I did not nest a contex properly, but I checked myaddlineitem against the doc's and I'm almost postive it is set upright. Is web cat trying to execut the [addlineitem] before it loopsthe form variables and calculates their values?________________________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:
CourierI'm really stumped on thisone, I'm displaying 30 items in a single form with < <The user fills in all the quantities he wants and submits the wholepage.Now on the shopping cart page I can get everything to display likethis..[FormVariables name=quantity&exact=T] [showif [value]>1][math show=f]n=[index]-1[/math][mathshow=f]v=[value][/math] [formvariables name=sku&exact=t][hideif [index]![math]n[/math]]sku=[value] quantity=[math]v[/math][/hideif][/formVariables][/showif][/formVariables]This will display sku=(the sku's that had a quantity greater then zero)quantity=(the number that was filled in.Now I'm trying to add these as line items so I use..[FormVariables name=quantity&exact=T] [showif [value]>1][math]n=[index]-1[/math][math]v=[value][/math] [formvariables name=sku&exact=t][hideif [index]![math]n[/math]][addlineitemcart=[cart]&db=avail.txt&sku=[value]]quantity=[math]v[/math][/addlineitem][/hideif][/formVariables][/showif][/formVariables]But they don't get added, and in my error log I get this...02/10/1999 14:39:31 [command] [ipaddress] Error:Error: expected [/APPLICATION], but found [/showif] insteadWhich usually means I did not nest a contex properly, but I checked myaddlineitem against the doc's and I'm almost postive it is set upright. Is web cat trying to execut the [addlineitem] before it loopsthe form variables and calculates their values?________________________Tim Taylor Web Development ManagerTim@versa.com VersaCom Inc.Http://www.growzone.comThe site for the geeen IndustryTim Taylor
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...