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 SoftwareeCommerce / Web Developer Tools http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
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 SoftwareeCommerce / 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:
purchase plugin (1996)
WCf2 and nested tags (1997)
sort problems....bug or brain fart? (1997)
Page Counters? (1997)
WC 2.0 frames feature (1997)
[WebDNA] eCommerce System Release (2018)
PIXO (1997)
locking variables? (2000)
Catalogs and W* (1996)
The List is Changing (1997)
ShowNext for method=POST (1997)
Frames and [cart] (1998)
WebDNA made easier? (1998)
WebCatalog can't find database (1997)
ANother SHOWIF problem (1997)
[ModDate] & [ModTime] ? (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
email program problem (1998)
[WebDNA] math and blank /no value (2014)
Secure server question (1997)