Re: setlineitem quantity to zero?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 29653
interpreted = N
texte = > >on 03/27/00 12:00 PM, Irene Chien at irenec@dhorse.com wrote: >> >> > Is it not possible to set the quantity of an item in a shopping cart >> > to zero? I would like to hold items with zero quantity in the >> > shopping cart briefly so that I can display out-of-stock items before >> > removing the item from the shopping cart. >> >>Check the archives for my posts entitled Inventory Adjustment. Especially >>look for the one entitled Inventory Adjustment SOLUTION. >> >>I have WC deduct ordered items from inventory. When the number of items >>reaches 1<, I have WC display a message (Out of Stock, Temporarily >>Unavailable, whatever) and also have it NOT display the Add to Cart feature. >>That allows customers to see the item and its decription, but not place it >>in the shopping cart. IMHO, that seems like an easier way to solve your >>problem. >> >>Glenn > >Yes, we similarly prevent items from being displayed on the shopping >site when inventory has dipped down to zero. However, we do not >deduct items from inventory at the moment a person places an item in >their shopping cart, but when the person actually makes a purchase. >Therefore, it is slightly possible that if 2 people have the last of >an item in stock in their shopping carts and 1 person completes the >purchase, the item will have gone out-of-stock while still in the >other person's shopping cart. If this happens, I'd like to be able >to set the lineitem quantity to zero.It looks like it's impossible to set the line item quantity to less than 1. 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. Maybe add Advanced Settings (whatever that might mean) to a later version of WebCat.In the meantime, you might want to just set the quantity to some impossibly high and unique number and use [SHOWIF]s to display the correct message. It's a pain but....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 12:00 PM, Irene Chien at irenec@dhorse.com wrote: >> >> > Is it not possible to set the quantity of an item in a shopping cart >> > to zero? I would like to hold items with zero quantity in the >> > shopping cart briefly so that I can display out-of-stock items before >> > removing the item from the shopping cart. >> >>Check the archives for my posts entitled Inventory Adjustment. Especially >>look for the one entitled Inventory Adjustment SOLUTION. >> >>I have WC deduct ordered items from inventory. When the number of items >>reaches 1<, I have WC display a message (Out of Stock, Temporarily >>Unavailable, whatever) and also have it NOT display the Add to Cart feature. >>That allows customers to see the item and its decription, but not place it >>in the shopping cart. IMHO, that seems like an easier way to solve your >>problem. >> >>Glenn > >Yes, we similarly prevent items from being displayed on the shopping >site when inventory has dipped down to zero. However, we do not >deduct items from inventory at the moment a person places an item in >their shopping cart, but when the person actually makes a purchase. >Therefore, it is slightly possible that if 2 people have the last of >an item in stock in their shopping carts and 1 person completes the >purchase, the item will have gone out-of-stock while still in the >other person's shopping cart. If this happens, I'd like to be able >to set the lineitem quantity to zero.It looks like it's impossible to set the line item quantity to less than 1. 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. Maybe add Advanced Settings (whatever that might mean) to a later version of WebCat.In the meantime, you might want to just set the quantity to some impossibly high and unique number and use [showif]s to display the correct message. It's a pain but....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:

[numfound] within summ=t (2000) HELP WITH DATES (1997) Database Updates (1997) WCS Newbie question (1997) [WebDNA] getting a cookie to expire (2015) UPS went bye bye (2006) Trouble with Netscape (1998) Re:Emailer tracking (1997) creator code (1997) Possible Shownext from Listfiles???? (2000) Shipping Formula % (2003) Search bug. Help (2002) [ShowIf] and empty fields (1997) Multiple catalog databases and showcart (1997) [WebDNA] jumpstart me? - how to auto-upload to a remote server? (2010) Urgent help needed (1998) Extended [ConvertChars] (1997) WebCatalog Features (1997) Sorting error (1997) Ampersand (1997)