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:

[searchString] (1997) 5.0 Pricing (2003) [Feature Request] Stronghold security variables that cannot be (2000) Problems with shopping cart (1997) Register First (2000) Next (1997) WebCatalog can't find database (1997) category index, drop down list (2005) WebCat2b12plugin - [search] is broken ... not! (1997) [WebDNA] duplicate cookies being stored in browser (2010) Re[2]: 2nd WebCatalog2 Feature Request (1996) HELP WITH DATES (1997) SIMS setup (1998) WebObjects (2000) Webten + Webcat running smooth (1998) ShowNext (1997) Orderfile context problem (1998) Webmerchant 2.1.3 startup questions, please (1999) Looking For WebCatalog Migration Assistance (2003) Using the Tearoom Teamplates (2000)