Re: formula???

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34799
interpreted = N
texte = formulas kick in right when the item is first added to the orderfile. So at that moment the quantity is still 1. Users don't get a chance to change the quantity until after the item is already a certified lineitem (thus the price is set unless you change it properly with [SetLineItem]. Someone correct me if I am wrong... (there may be other ways... or not... it is passed my bedtime and I am not looking this stuff up). If you try to change the price of a lineitem after it has been added already, then you have to use the password set in your webcat's prefs to be able to do it.BTW - In the tea room I have the quantity is input on the ShoppingCart.tpl page and passed to Invoice.tpl, not the other way around... right?-JohnGlenn 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:

    
  1. Re: formula??? (John Peacock 2000)
  2. Re: formula??? (John Peacock 2000)
  3. Re: formula??? (Glenn Busbin 2000)
  4. Re: formula??? (John Butler 2000)
  5. Re: formula??? (John Butler 2000)
  6. Re: formula??? (Glenn Busbin 2000)
  7. Re: formula??? (WebDNA Support 2000)
  8. Re: formula??? (Glenn Busbin 2000)
  9. Re: formula??? (Arturo Vargas 2000)
  10. Re: formula??? (WebDNA Support 2000)
  11. Re: formula??? (John Butler 2000)
  12. Re: formula??? (Glenn Busbin 2000)
  13. Re: formula??? (John Peacock 2000)
  14. Re: formula??? (Glenn Busbin 2000)
  15. Re: formula??? (John Peacock 2000)
  16. formula??? (Arturo Vargas 2000)
formulas kick in right when the item is first added to the orderfile. So at that moment the quantity is still 1. Users don't get a chance to change the quantity until after the item is already a certified lineitem (thus the price is set unless you change it properly with [setlineitem]. Someone correct me if I am wrong... (there may be other ways... or not... it is passed my bedtime and I am not looking this stuff up). If you try to change the price of a lineitem after it has been added already, then you have to use the password set in your webcat's prefs to be able to do it.BTW - In the tea room I have the quantity is input on the ShoppingCart.tpl page and passed to Invoice.tpl, not the other way around... right?-JohnGlenn 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 Butler

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:

OT-Load balance (2004) Searching multiple Databases (1997) File Uploads: WebCat/SiteEdit (1998) emailer truncates last letter! (1997) webcat/webmerchant docs (1997) PCS Frames (1997) process SSI (1998) Interpret twice? (1997) [WebDNA] [sendmail] inside a [founditems] loop ... please comment on parameters. (2009) different show next (1997) Best way to handle 404 errors with WebDNA and Web* V (2003) Re:Emailer and encryption (1997) [isfile] ? (1997) Works! (1997) [TaxableTotal] - not working with AOL and IE (1997) [WebDNA] Problem with Trigers. (2013) Unexpected error (1997) [WebDNA] Issue with variable inside a Function (2018) WebMerchant crashing and other WebMerchant problem (2000) [TaxTotal] (1998)