Re: Adding muliple sku + quantities

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23556
interpreted = N
texte = CourierI'm really stumped on this one, I'm displaying 30 items in a single form with < < The user fills in all the quantities he wants and submits the whole page.Now on the shopping cart page I can get everything to display like this..[FormVariables name=quantity&exact=T] [showif [value]>1][math show=f]n=[index]-1[/math][math show=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]][addlineitem cart=[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 my addlineitem against the doc's and I'm almost postive it is set up right. Is web cat trying to execut the [addlineitem] before it loops the 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 this one, I'm displaying 30 items in a single form with < < The user fills in all the quantities he wants and submits the whole page.Now on the shopping cart page I can get everything to display like this..[FormVariables name=quantity&exact=T] [showif [value]>1][math show=f]n=[index]-1[/math][math show=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]][addlineitem cart=[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 my addlineitem against the doc's and I'm almost postive it is set up right. Is web cat trying to execut the [addlineitem] before it loops the form variables and calculates their values? ________________________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:

[WebDNA] [OT] DNS Services (2010) Off Topic: Frames Killer? (1998) WC TableGrinder (1997) Nesting [ListFiles] (1998) [WebDNA] PayPal Integration (2017) Spiders and Bots (2000) PCS Frames (1997) randomness (1997) Setting up WebCatalog with Retail Pro data (1996) Hard Questions ? (1997) v6.x & [cart] (2004) RAW=T..Strange behaviour (2000) credit card authorization question (1997) Form based Redirect (2001) Problems with [Search] param - Mac Plugin b15 (1997) Re:Searching for ALL / empty form field (1997) Search on encrypted field (2000) WC2b12: Yes, Formulas.db is for real (1997) Shopping Cart Limits? (1998) Erotic Sites (1997)