Re: ShowCart
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38350
interpreted = N
texte = Shidan Bateni wrote:> > Hi All,> > I want to update quantities in a shopping cart, using a> recalculate button in the cart page.> > How can I use the showcart command to do this?> You don't need to use showcart to do this (any page that goes throughWebCat is an implicit showcart). Submit the page to itself and have a [showif] at the top of the page that does the update. For example, at the top of the page:[ShowIf [action]=newQty] [SetLineItemcart=[cart]&index=[index]&db=^DB/IMPRINT.db]quantity=[quantity][/SetLineItem][/Showif]and for each line displayed in the cart:
NOTE: it is important to NOT use any of WebCat's built-in commands,like UPDATE, REPLACE, etc. Choose your own name for this commandand you will never have problems.HTHJohn--John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Shidan Bateni wrote:> > Hi All,> > I want to update quantities in a shopping cart, using a> recalculate button in the cart page.> > How can I use the showcart command to do this?> You don't need to use showcart to do this (any page that goes throughWebCat is an implicit showcart). Submit the page to itself and have a [showif] at the top of the page that does the update. For example, at the top of the page:[ShowIf [action]=newQty] [SetLineItemcart=[cart]&index=[index]&db=^DB/IMPRINT.db]quantity=[quantity][/SetLineItem][/Showif]and for each line displayed in the cart:NOTE: it is important to NOT use any of WebCat's built-in commands,like UPDATE, REPLACE, etc. Choose your own name for this commandand you will never have problems.HTHJohn--John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
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:
Test (2003)
Separate SSL Server (1997)
SiteBuilder? - SlideShow (2004)
problems with 2 tags (1997)
Weird Math (2000)
international time (1997)
MacOS X Server problems (2001)
Other then credit cards-how? (1997)
What generates Problem With Your Order email? (2000)
[math] show=F exists? (1997)
default value from Lookup (was Grant, please help me) (1997)
Grepping text variable tags (was: No subject given) (2000)
Webcat Manual and TeaRoom Examples Uses Different Examples. (1997)
groups and [ShowNext] (1997)
[object] context (2002)
WebCatalog books and othre resources (2001)
Dummy Credit Card Number for debug? (1997)
Template Not Found (1998)
[WebDNA] Variable mystery (2009)
[SearchString] problem with [search] context (1997)