ricardomyra Posted October 1, 2023 Share Posted October 1, 2023 I have the following problem: When an order is cancelled, the quantity returned to stock is doubled!!! If I have an item that has 5 pieces in stock, if the customer buys 2 pieces, the stock drops to 3 pieces, so far everything is fine, but if the customer does not complete the payment and the order is cancelled, 4 pieces are returned to stock , leaving my stock with 7 pieces instead of going back to 5 pieces, which would be correct. The strange thing is that if I change the status of that same order to PAYMENT CONFIRMED, then it downloads 4 pieces instead of 2, returning my stock to 3 pieces! How to resolve this? My version is 1.6.1.4 Link to comment Share on other sites More sharing options...
ricardomyra Posted October 2, 2023 Author Share Posted October 2, 2023 This error was due to a change I had made to the order.php class, I fixed the error and resolved the problem. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now