Bug in stock reduction
-
Hi
Great plugin! Thanks.
One bug: if no location is selected during check out in cart (frontend), then u add the location in backend in admin order list in corresponding order, then the Stock will be reduced twice with the same amount.
This make sense because woocommerce will reduce Stock by Handover of order already. If afterwards i select an location, the Stock is again reducedexample:
1 article i have 3 sizes XS left (overall stock = 3). 2 are in location a, 1 in location b.
i removed the location selection in shopping card.
now customer orders one garment in XS.
i get an order in backend.
i open the order and now i assign location a.
afterwards the overall stock is not 3 anymore, its only 1.
so 2 were reduced, even if only 1 was ordered.guess this is because following reason: if customer do not specify the location (finally he cat do that because he is not aware, where product is located), then oder comes into backend and reduce the general stock amount already by 1. after i assigned location a, another piece is used and reduce overall amount.
the result is: the stock info in products is right (thats the part you developed in product details in backend, but the overall stock is wrong (checking via ATUM or stock manager)Can u fix this?
Rgds
- The topic ‘Bug in stock reduction’ is closed to new replies.