DragonflyCMS Projects > Storez > [fixed] Stock management > Community Forums > Phoenix Netology
Forum Index > eCommerce > Storez

[fixed] Stock management Reply to topic


Hey, me again. Confused 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!

Initiated by Bugger (Original Entry) - Comments Here Please.

L8r!
The Warden
www.smiths-grove.com

Please enter your server specs in your user profile! 😢


In progress - the original module simply didn't make it all interactive, and achieving that interactivity encompasses several files.

A "product_availability" value of 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.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


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."

L8r!
The Warden
www.smiths-grove.com

Please enter your server specs in your user profile! 😢

All times are Australia/Adelaide


Jump to: