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:
[founditems] [/founditems]
SKUPRODUCTQTYPRICE / UNIT
[SKU][PRODUCT]$[format .2f][PRICE][/format] / [UNIT]
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]
[lineItems] [/lineItems]
Line #Product #Item TitleQtyPricePut It Back!
[lineIndex][SKU][PRODUCT]$[format .2f][price][/format]Remove Item

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 Robinson Art Director imagine online tim@imagine.au.com http://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:

    
  1. Re: Adding more than one item and QTY to cart (John Butler 2000)
  2. Re: Adding more than one item and QTY to cart (Tim Robinson 2000)
  3. Re: Adding more than one item and QTY to cart (Arturo Vargas 2000)
  4. Re: Adding more than one item and QTY to cart (John Butler 2000)
  5. Re: Adding more than one item and QTY to cart (Tim Robinson 2000)
  6. Re: Adding more than one item and QTY to cart (John Butler 2000)
  7. Adding more than one item and QTY to cart (Tim Robinson 2000)
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:
[cart]> [founditems] [/founditems]
SKUPRODUCTQTYPRICE / UNIT
[SKU][PRODUCT]$[format .2f][PRICE][/format] / [UNIT]
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]
[cart]> [lineitems] [/lineItems]
Line #Product #Item TitleQtyPricePut It Back!
[lineIndex][SKU][PRODUCT]$[format .2f][price][/format][cart]>Remove Item

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 Robinson Art Director imagine online tim@imagine.au.com http://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:

using showpage and showcart commands (1996) Upcoming 2.1 Release and PCS Committment (1997) WCS Newbie question (1997) Configuring E-mail (1997) [searchString] (1997) Off Topic: Frames Killer? (1998) Forms Search Questions (1997) email program problem (1998) WebCat2 several catalogs? (1997) Clickable maps and WebCatalog? (1996) OT: javascript print() (2003) Protect (1997) PIXO support (1997) pass a captured value (2004) Doing VALIDCARD right? (1998) Blog Software (2006) F3 crashing server (1997) Verify entry into a text field (2005) re:check boxes (1997) Comments in db? (1997)