Re: Adding multiple items to Cart at one time, & append contextproblem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 15971
interpreted = N
texte = Yes, you can use checkboxes. In general, the idea is to have the product checkbox input fields have a distinct name (like add_product) and have each of their values be their sku number. Then, when they're ready to add the items to their cart, link to a page with an embedded [formwariables] loop that loops through all the form variables named add_product and perform an embedded [addlineitem] on the sku for each one. After that, you can use the [orderfile] context to display the contents of the shopping cart on the same page.There's no reason WC should be adding bad characters to the end of the field. My guess is that the character is in the form data that's being submitted.John.>In the TeaRoom example, instead of having Add to Cart links in the >Action Collumn is it possible to use checkboxes so you could check >several items to add to the cart at once? > >Also, when I use the append context to add records to a database >it adds a bad character between the end of the record and the tab >that separates the records. When I pasted the bad character into Key >Caps on my mac it showed up as the Page Up character. > >Is there any way to prevent WebCatalog from adding this character to my >database? > > Thanks for all you help, > > - Tom > > > Tom Leitner > MediaCity Web Design > http://www.mediacity.com 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. Re: Adding multiple items to Cart at one time, & append contextproblem (Grant Hulbert 1998)
  2. Re: Adding multiple items to Cart at one time, & append contextproblem (John Hill 1998)
  3. Adding multiple items to Cart at one time, & append context problem (Tom Leitner 1998)
Yes, you can use checkboxes. In general, the idea is to have the product checkbox input fields have a distinct name (like add_product) and have each of their values be their sku number. Then, when they're ready to add the items to their cart, link to a page with an embedded [formwariables] loop that loops through all the form variables named add_product and perform an embedded [addlineitem] on the sku for each one. After that, you can use the [orderfile] context to display the contents of the shopping cart on the same page.There's no reason WC should be adding bad characters to the end of the field. My guess is that the character is in the form data that's being submitted.John.>In the TeaRoom example, instead of having Add to Cart links in the >Action Collumn is it possible to use checkboxes so you could check >several items to add to the cart at once? > >Also, when I use the append context to add records to a database >it adds a bad character between the end of the record and the tab >that separates the records. When I pasted the bad character into Key >Caps on my mac it showed up as the Page Up character. > >Is there any way to prevent WebCatalog from adding this character to my >database? > > Thanks for all you help, > > - Tom > > > Tom Leitner > MediaCity Web Design > http://www.mediacity.com 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:

[Sum] function? (1997) Password problems with WebCat 4.01 (2000) pull downs (1997) Search inside Include (1998) Help name our technology! (1997) Getting the domain of every request ... (2003) RE: Nesting [ListFiles] (1998) Variable security (2000) tcpconnect/tcpsend frustrations (2002) Gettting IPAddress (2001) Virtual hosting and webcatNT (1997) SSL and Webstar 3 with Webcatalog (1998) database size? (1997) [WebDNA] anybody installed on snow leopard (2009) question: webmerchant connection (1997) emailer w/F2 (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Need relative path explanation (1997) WC2.0 Memory Requirements (1997) Simple Store (2000)