VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: edek on January 04, 2012, 10:54:11 AM

Title: VM2: Stock and order status
Post by: edek on January 04, 2012, 10:54:11 AM
Hello

I have problem. When I change the order status to "CONFIRMED", the product is not removed from the stock and another user may still order this same product. Product are removed from stock only when i set status to "SHIPPED". How to fix it?

best regards
edek
Title: Re: VM2: Stock and order status
Post by: Venkko on January 04, 2012, 11:28:50 AM
Perhaps this will help you.

http://forum.virtuemart.net/index.php?topic=94680.0

Find the real stock and virtual stock part...
Title: Re: VM2: Stock and order status
Post by: edek on January 04, 2012, 14:48:08 PM
Thanks Vennko, but I could not find solution in this thread.
I don't have option to turn on/off manage stock.
Title: Re: VM2: Stock and order status
Post by: Venkko on January 04, 2012, 15:07:28 PM
Hi!

What ment was this part.

QuoteYou have real stock and virtual stock(ordered but not shipped).
The real stock is only decreased when you have shipped your product but stock level is calculated real stock - ordered product

If I get it right when someone makes an order real stock will not change but booked, ordered products field will increase.
Stock quantity that you have left is "in stock" - "booked, not ordered".

Once you change order status to "shipped" booked, ordered products and in stock fields will both decrease.

Ex. If you have product stock quantity 5 and one pcs of item will be ordered and order has status "confirmed". Your in stock field will stay on 5 but booked, ordered products will increaseto one (1).  After changeing order status to "shipped", booked, ordered products field will change back to 0 and in stock will decrease to 4.

This is attleast how I have understand it...


[attachment cleanup by admin]
Title: Re: VM2: Stock and order status
Post by: edek on January 04, 2012, 16:38:08 PM
All what you wrote is true, but problem is that if i have one piece in stock and one booked / ordered product, anothe customer can still buy this product. I made a live test. Placed one piece of product to the stock with price 0.5 euro. After this i logged as customer, bought this piece and pay for it via paypal. Next logged as another customer and bought and pay again. I do this 7 times! And i have still one piece in stock and 7 pieces booked / ordered.
This is wrong. In my shop all products are handpainted images. So product will be allways available only as one piece.
Title: Re: VM2: Stock and order status
Post by: Venkko on January 04, 2012, 19:51:42 PM
Hi!

I did just try it on my own shop that I am building and if I set stock quantity 1 and go to front-end and buy that product:

- I can add it only once to my cart, on other time it says maximum order amount is reatched (or something like that)
- After I bought that item and order status is pending, text in the front-end change to "remind me about this produc"(or something simular, I have done my own language pack...)

So in my case stock control works just as you would like it to work.

mayby someone smarter than me can help you with your problem.

EDIT: changed order status
Title: Re: VM2: Stock and order status
Post by: Venkko on January 04, 2012, 20:28:28 PM
Edek: Please check back-end : Configuration -> configuration -> shopfront -> action when product is out of stock

What do you have here? I have "Displays 'Notify Me' instead of 'Add To Cart' button"
Title: Re: VM2: Stock and order status
Post by: edek on January 05, 2012, 10:30:30 AM
Thanks Vennko, your last post solved my problem :)
Title: Re: VM2: Stock and order status
Post by: John2400 on January 23, 2012, 03:54:04 AM
* updated::  once I went back to Configuration of the shop and reupdated the Vendors information (saved everything) - several thing shappened - Orders were registered, emails went out to customers and stock numbers were registeded in the back end and chnge accordingly.