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:
Faxing orders in place of email (1997)
Multiple Merchant Accounts? (1997)
Protect (1997)
formulas.db ?? (1998)
Emailer Problems with WebCat (2000)
Why does WebCat do this? (2001)
Execute Applescript (1997)
unable to launch acgi in WebCat (1997)
Search returns all, not 20 (1997)
caching -check- (2001)
Been meaning to ask... (1997)
Tax on shipping (1998)
WebCat editing, SiteGuard & SiteEdit (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
search across ip/domain addresses? (1998)
suggestions (1998)
Tea Room trouble (1997)
More DateMath problems (1997)
Quitting WebMerchant ? (1997)
Formatting time output (2000)