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:

Editing the search string (1997) NumFound (1999) WebCat2b13MacPlugIn - More limits on [include] (1997) Just Testing (1997) [SearchString] usage (1997) Shipping Calc - Help please (1998) Communigate+Webcat (2001) Browser Problem?!? Still getting Error message using POST! (1997) Quick poll (2003) Searchable WebCat (etc.) Docs ? (1997) Exclamation point (1997) searching within same page (2000) [WebDNA] sem_open bugfix for os x version 6.2 (2012) Version 4 (2000) MacWEEK article help needed (1996) SV: Mass Mail (2000) using showpage and showcart commands (1996) default value from Lookup (was Grant, please help me) (1997) Grouping search fields, etc. (1997) action=add works with IE but not Communicator (2000)