Tiny Store / Checkboxes

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20528
interpreted = N
texte = I think some of the confusion comes down to the method used in the Tiny Store to add items to the cart. The method used is dependent on a particular sort order, but does not specify the order. It would be better to do the following on the entry page:[Search db=catalog.db&neSKUdata=[blank]] [FoundItems] Buy Size: Qty: [title]: $[price]
[/foundItems] [/Search]Then, on the invoice page, use the [formvariables] context to add the skus of all the form varaibles checked:[formvariables name=item&exact=f] [math show=f]the_index=[getchars start=6][name][/getchars][/math][AddLineItem db=[db]&cart=[cart]&sku=[url][value][/url]]quantity=[interpret][qty_[math]the_index[/math]][/interpret]&textA=[interpret][size_[math]the_index[/math]][/interpret] [/AddLineItem] [/formvariables]This eliminates the guess-work out of which items to add to the cart and hopefully makes the interaction easier to understand.John. John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Tiny Store / Checkboxes (John Hill 1998)
I think some of the confusion comes down to the method used in the Tiny Store to add items to the cart. The method used is dependent on a particular sort order, but does not specify the order. It would be better to do the following on the entry page:[Search db=catalog.db&neSKUdata=[blank]] [founditems] Buy Size: Qty: [title]: $[price]
[/foundItems] [/Search]Then, on the invoice page, use the [formvariables] context to add the skus of all the form varaibles checked:[formvariables name=item&exact=f] [math show=f]the_index=[getchars start=6][name][/getchars][/math][AddLineItem db=[db]&cart=[cart]&sku=[url][value][/url]]quantity=[interpret][qty_[math]the_index[/math]][/interpret]&textA=[interpret][size_[math]the_index[/math]][/interpret] [/AddLineItem] [/formvariables]This eliminates the guess-work out of which items to add to the cart and hopefully makes the interaction easier to understand.John. John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com John Hill

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:

BGcolor (1997) Associative lookup style? + bit more (1997) [Sum] function? (1997) Shownext on AOL (2003) TCPConnect / Current Temperature (2004) Searching multiple fields (1997) Exists? (1997) Re[2]: Searchable archives gone again??? (2000) WebDNA made easier? (1998) New syntax feedback for 4.0 (2000) WebCat2b15MacPlugin - showing [math] (1997) WC1.6 to WC2 date formatting (1997) Customer - again (1998) WebCat2 several catalogs? (1997) (2000) Closing db's & caching templates (was: Shippingcalculations) (1997) Troubles with Selection Drop Down List Search (1998) Help name our technology! I found it (1997) WebTen and WebCat (1997) unsubscribe (2000)