Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Bugger
 
of 6

 #63 » Stock management
 Date Open: Sep 29, 2008 at 17:03:13    Last Update: Oct 01, 2008 at 08:53:21 Bugger Off: Oct 01, 2008 at 08:53:21 
 Description: Hey, me again. I have an item with the "manage stock" option selected (as "yes"), and the quantity is "0." However, I can still order the item. Shouldn't it state, "Out of stock" when the quantity reaches 0, and not allow an order to be placed?

BTW - really diggin this cart now with the USPS shipping implemented! Thanx again!
 Request: Bug
 Application: Module
 Module: storez
 Solution: A "product_availability" value of 0 in the cart_products table will always be interpreted by Storez as being "Out of Stock" and will be encoded as the default value when a new product is added, until admin deliberately changes it.

Every time a product is viewed, Storez will check if stock control is activated and that stock is available - if not, it will automatically update the product availability status to "Out of Stock" and suppress display of the order button.

Additions to the cart and modifications of the cart will prevent ordering of numbers above what is in stock.
e.g. someone has ordered 1 item then tries to increase it to 2, the cart will not increase to 2 - it will provide an error message telling the user there is only 1 item in stock.
 Bugger From: Thewarden
 Debugger: Phoenix
 Group Access: All Visitors
 DiscussIt Forum: Storez
 DiscussIt Topic: Stock management
 Status: Done
 Priority: High
 Topic Replies:
 Phoenix
 Oct 01, 2008
 03:46:47
In progress - the original module simply didn't make it all interactive, and achieving that interactivity encompasses several files.

A "product_availability" value of 0 in the cart_products table will always be interpreted by Storez as being "Out of Stock".

It will be encoded as the default value when a new product is added, until admin deliberately changes it.

Every time a product is viewed, Storez will check if stock control is activated and that stock is available - if not, it will automatically update the product availability status to "Out of Stock" and suppress display of the order button.

Additions to the cart and modifications of the cart will prevent ordering of numbers above what is in stock.
e.g. someone has ordered 1 item then tries to increase it to 2, the cart will not increase to 2 - it will provide an error message telling the user there is only 1 item in stock.

The dilemma arises with what is in people's carts, which can remain there quite some time, and when they actually place an order - we can't afford to exclude sales just because people place items in their cart and delay their checkout (it could be used maliciously), so that may bring some grief.

None of this will avoid the issue of people simultaneously ordering the same item when there is only 1 item for sale - I'm not catering for that event for now.
 thewarden
 Oct 15, 2008
 20:32:18
Ok, now I have items with "Manage Stock" set to no, but still can't order one if the quantity is set to 0.

The items I sell are always 0 in stock, as they are made to order. Can storez allow ordering of items that have the quantity set to 0, so long as manage stock is set to no? Or do I have to put a random high value in the quantity?

The order button for these items does not say "out of stock" but when I press order, I get the message, "Sorry, there are only 0 item(s) in stock."
150 buggers listed, 109 buggered off, 31 declined, 8 on hold.