Adding more than one item and QTY to cart
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34161
interpreted = N
texte = Hi there,There's a number of items in the searchable archives, and I HAVE tried. I would like to add a number of products to the cart at once, but only if there is a QTY specified for the product. I don't want to have to check a checkbox or anything, just fill in a QTY.I understand the cart page needs to have a [FormVariables] and [AddLineItem], but I can't seem to get it to work.... Here's the results.tpl stuff:
Here's the cart.tpl stuff:[formvariables name=qty_&exact=f][AddLineItem db=/orgmech_internal/orgmech.db&cart=[cart]&sku=[url][SKU][/url]]quantity=[qty_[index]][/AddLineItem][/formvariables]
There's obviously something I'm missing. At the moment, the cart.tpl displays the message Error: couldn't find SKU '[SKU]' in product database Error: couldn't find SKU '[SKU]' in product database Error: couldn't find SKU '[SKU]' in product database. I want the QTY to remain editable in the cart page.Any help would be so hugely appreciated, and good karma is guaranteed...Regards,TimTim RobinsonArt Directorimagine onlinetim@imagine.au.comhttp://www.imagine.au.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi there,There's a number of items in the searchable archives, and I HAVE tried. I would like to add a number of products to the cart at once, but only if there is a QTY specified for the product. I don't want to have to check a checkbox or anything, just fill in a QTY.I understand the cart page needs to have a [formvariables] and [addlineitem], but I can't seem to get it to work.... Here's the results.tpl stuff:Here's the cart.tpl stuff:[formvariables name=qty_&exact=f][AddLineItem db=/orgmech_internal/orgmech.db&cart=[cart]&sku=[url][SKU][/url]]quantity=[qty_[index]][/AddLineItem][/formvariables]There's obviously something I'm missing. At the moment, the cart.tpl displays the message Error: couldn't find SKU '[SKU]' in product database Error: couldn't find SKU '[SKU]' in product database Error: couldn't find SKU '[SKU]' in product database. I want the QTY to remain editable in the cart page.Any help would be so hugely appreciated, and good karma is guaranteed...Regards,TimTim RobinsonArt Directorimagine onlinetim@imagine.au.comhttp://www.imagine.au.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Tim Robinson
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:
How does WebCatalog search the database? (1997)
[isfile] ? (1997)
XML version of WebDNA docs? (2000)
[if] (2003)
OT Weird Messenger Service message (2002)
RE: completed orders database (1997)
Pager notification of completed orders (1998)
Can GMT be called from the OS ? (2004)
Date Question (2002)
Shop till you drop dead on the avenue ... (1997)
Generating Pages (1999)
Thanks Grant (1997)
Cancel Subscription (1996)
Spiders, robots, whatever you want to call them (1998)
oops private message leaked into talk list (1997)
How does WebCatalog search the database? (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Spell Check (2003)
[SearchString] problem with [search] context (1997)
Quit revisited (1997)