Re: formula???
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34806
interpreted = N
texte = Glenn - The nameless support person is correct: you are not setting the quantity in the add command, which is why it is always 1. Try this instead:
Add to your Shopping Cart ^^^^^^^^^^^^^^^^^^^HTHJohn PeacockGlenn Busbin wrote:> > >>Add command.> >>
>>HREF=ShoppingCart.tpl?command=add&cart=[cart]&db=mydatabase.db&sku=[> >>url][sku][/> >>url]>Add to your Shopping Cart> >> >I don't see you setting the quantity anywhere here. So it's always> >going to be 1.> >> > The value of [quantity] is entered into a form on the Invoice.tpl page and> passed to the Shoppingcart.tpl page where the value of [price] is, I hope,> determined by [quantity].> > [quantity] is correctly passed to the Shoppingcart.tpl.> > This is all based on the Tea Room example.> > Thanks,> Glenn> > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
Glenn - The nameless support person is correct: you are not setting the quantity in the add command, which is why it is always 1. Try this instead:[cart]&db=mydatabase.db&sku=[url][sku][/url]&quantity=[quantity]>Add to your Shopping Cart ^^^^^^^^^^^^^^^^^^^HTHJohn PeacockGlenn Busbin wrote:> > >>Add command.> >> >>HREF=ShoppingCart.tpl?command=add&cart=[cart]&db=mydatabase.db&sku=[> >>url][sku][/> >>url]>Add to your Shopping Cart> >> >I don't see you setting the quantity anywhere here. So it's always> >going to be 1.> >> > The value of [quantity] is entered into a form on the Invoice.tpl page and> passed to the Shoppingcart.tpl page where the value of [price] is, I hope,> determined by [quantity].> > [quantity] is correctly passed to the Shoppingcart.tpl.> > This is all based on the Tea Room example.> > Thanks,> Glenn> > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
syntax question, not in online refernce (1997)
Signal Raised Error (1997)
security (https) w webcat (1999)
Summing fields (1997)
IE cache problems (1999)
NT version and O'reily's WebSite (1997)
Initiating NewCart (1997)
Feedback on new features (2000)
Read and Write (2001)
[OT Rebound] how to set w* backgroundserver (2002)
re:check boxes (1997)
BUG in [showif] using ^ (contains) (1997)
system crashes, event log (1997)
empty shopping cart message (1997)
Hiding HTML and page breaks (1997)
WC Database Format (1997)
deadlock (2000)
webcatalog [date] bug (1999)
ReturnRaw context (1997)
Frames and WebCat (1997)