Re: setlineitem quantity to zero?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 29666
interpreted = N
texte = >on 03/27/00 3:53 PM, Michael Winston at m-w@pacbell.net wrote: > >> It looks like it's impossible to set the line item quantity to less >> than 1. > >It works for me. If the number of items in inventory is less than 1, I have >WC display an Out of Stock message.Are you saying you can set line item quantity (not inventory numbers) to something less than 1? If I try quantity=0, it sets it to 1. If I try quantity=.5, I get 415480356 (for some reason).> > In fact, if you try to set it to any fraction, it inserts a >> natural number (3.14 would give you 3). I can see how this would be >> helpful protection for the newbie, but there should be a way around >> this. > >We're not dealing in fractions. We're using integers.Well, maybe you and I are, but what about someone who wants to sell three and a half units of something (flour? pints of blood?)? Anyway, my point was that it's nice of Grant and the gang to protect people from setting quantity to strange numbers, but there are some cases (like setting quantity=0) where you want to override the safeguards. I was just using the 3.14 example to show that there are safeguards in place.Michael------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re[2]: setlineitem quantity to zero? (jpeacock@univpress.com 2000)
  2. Re: setlineitem quantity to zero? (Glenn Busbin 2000)
  3. Re: setlineitem quantity to zero? (Michael Winston 2000)
  4. Re: setlineitem quantity to zero? (Michael Winston 2000)
  5. Re: setlineitem quantity to zero? (Glenn Busbin 2000)
  6. Re: setlineitem quantity to zero? (Michael Winston 2000)
  7. Re: setlineitem quantity to zero? (Glenn Busbin 2000)
  8. Re: setlineitem quantity to zero? (Irene Chien 2000)
  9. Re: setlineitem quantity to zero? (Glenn Busbin 2000)
  10. setlineitem quantity to zero? (Irene Chien 2000)
>on 03/27/00 3:53 PM, Michael Winston at m-w@pacbell.net wrote: > >> It looks like it's impossible to set the line item quantity to less >> than 1. > >It works for me. If the number of items in inventory is less than 1, I have >WC display an Out of Stock message.Are you saying you can set line item quantity (not inventory numbers) to something less than 1? If I try quantity=0, it sets it to 1. If I try quantity=.5, I get 415480356 (for some reason).> > In fact, if you try to set it to any fraction, it inserts a >> natural number (3.14 would give you 3). I can see how this would be >> helpful protection for the newbie, but there should be a way around >> this. > >We're not dealing in fractions. We're using integers.Well, maybe you and I are, but what about someone who wants to sell three and a half units of something (flour? pints of blood?)? Anyway, my point was that it's nice of Grant and the gang to protect people from setting quantity to strange numbers, but there are some cases (like setting quantity=0) where you want to override the safeguards. I was just using the 3.14 example to show that there are safeguards in place.Michael------------------------------------------------------------- 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 Michael Winston

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:

Using Plug-In while running 1.6.1 (1997) Smart caching problems with 2.1b3? (1997) Using Plug-In while running 1.6.1 (1997) Need help with form (1998) [Repost] Triggers, again SM??? (2000) TCPConnect to query for Domain expiration (2000) Shipping formula problem (1997) [showif] question (2000) bug in [SendMail] (1997) Practice runs ? (1997) [delete] problem (1997) WebCatalog for guestbook ? (1997) unitshipcost vs shipcosts (1997) [cart] not being interpreted inside [founditems] (1997) WebCat2 - [format thousands] (1997) WebCatalog can't find database (1997) SSL do I need it?? (1998) [searchString] (1997) hmmm (2006) Multiple Pulldowns (1997)