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:

[sendmail] questions... (1997) [WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up (2019) Cobalt RaQ Installation (2003) Checkboxes (1998) [OT] two domains one site... (2005) Search and Change (2003) listfile options (1997) Country & Ship-to address & other fields ? (1997) WebCat2.0 acgi vs plugin (1997) WC 2.0 frames feature (1997) forms and variables (1998) Sorting by date (1997) New servers and new inline cache (1997) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] TLS 1.2 and [tcpconnect] (2018) WCf2 and nested tags (1997) emailer (1997) [WebDNA] Displaying age (2010) re: sorting and summarizing (1998) Processing all html files through WebCat or Typhoon (1998)