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:
2nd WebCatalog2 Feature Request (1996)
WC slowness on NT (2000)
"Advanced" Search Algorithm (2008)
Execute Applescript (1997)
Emailer (1997)
WebCat2 - [SendNews] (1997)
[WebDNA] An issue with Ajax or maybe my WebDNA code... voting (2018)
Include a big block of text (1997)
WebCatalog can't find database (1997)
Web Calendar (2002)
Date search - yes or no (1997)
WebDNA Solutions ... sorry! (1997)
Running 2 two WebCatalog.acgi's (1996)
Colors in cart (2002)
New Guestbook Source (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
Quickie question on the email templates (1997)
Version f1 status (1997)
WebDNA Trouble... (1999)
Why is this search finding the right thing?! (2002)