Re: How can I Add several Items into the cart at once?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13682
interpreted = N
texte = >How would you suggest I use the showif to see if the checkbox has been >clicked? Is there someway to pass this info with the submit button?WebCatalog makes every form variable available to you upon submit, so in your case there are 6 checkboxes named box1, box2, etc. If you put [box1] into your shoppingcart.tmpl, it will either display cdp005001H or it will display [box1]. Web browsers are weird; if a checkbox is unchecked, then it's as though it doesn't exist in your form at all, so that's why WebCatalog displays literally [box1].The following lines mean if box1 has a value other than literally [box1], then add the sku associated with box1 to the cart[ShowIf [box1]![raw][box1][/raw]] [AddLineItem cart=[cart]&db=Photos.db&sku=[box1]]sku=[box1][/AddLineItem] [/ShowIf][ShowIf [box2]![raw][box2][/raw]] [AddLineItem cart=[cart]&db=Photos.db&sku=[box2]]sku=[box2][/AddLineItem] [/ShowIf]I also really like the idea of using frames, so you can have a little contents of cart frame somewhere that gets updated every time they click a add button, but it leaves the main frame unchanged.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: How can I Add several Items into the cart at once? (Grant Hulbert 1997)
  2. Re: How can I Add several Items into the cart at once? (Christer Olsson 1997)
  3. Re: How can I Add several Items into the cart at once? (Paul Winchester 1997)
  4. Re: How can I Add several Items into the cart at once? (natasha 1997)
  5. Re: How can I Add several Items into the cart at once? (Grant Hulbert 1997)
  6. Re: How can I Add several Items into the cart at once? (Pat McCormick 1997)
  7. Re: How can I Add several Items into the cart at once? (natasha 1997)
  8. How can I Add several Items into the cart at once? (Paul Winchester 1997)
>How would you suggest I use the showif to see if the checkbox has been >clicked? Is there someway to pass this info with the submit button?WebCatalog makes every form variable available to you upon submit, so in your case there are 6 checkboxes named box1, box2, etc. If you put [box1] into your shoppingcart.tmpl, it will either display cdp005001H or it will display [box1]. Web browsers are weird; if a checkbox is unchecked, then it's as though it doesn't exist in your form at all, so that's why WebCatalog displays literally [box1].The following lines mean if box1 has a value other than literally [box1], then add the sku associated with box1 to the cart[ShowIf [box1]![raw][box1][/raw]] [AddLineItem cart=[cart]&db=Photos.db&sku=[box1]]sku=[box1][/AddLineItem] [/ShowIf][ShowIf [box2]![raw][box2][/raw]] [AddLineItem cart=[cart]&db=Photos.db&sku=[box2]]sku=[box2][/AddLineItem] [/ShowIf]I also really like the idea of using frames, so you can have a little contents of cart frame somewhere that gets updated every time they click a add button, but it leaves the main frame unchanged.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

[OT] Appropriate Signature??? (2003) SHOWIF/HIDEIF empty fields (2005) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Lost and Recovered. (1998) OT: Several requests (2003) OT: Adjusting Pic Sizes etc (2002) [WebDNA] Privat IP website behind a public IP website (2014) Providing hard copy of database to client (1997) how to kill webcat ? (2002) Forms Search Questions (1997) Protecting Realms (1998) Getting total number of items ordered (1997) [WebDNA] Open Source CMS (2012) Share Bulletin Board? (1998) Mozilla/4. and Browser Info.txt (1997) Protect and Serve (1999) DomainList (2005) WebCat2 - [format thousands] (1997) Convertchars Problem (2004) RE: Include (1998)