Eutanasio Posted March 10, 2017 Share Posted March 10, 2017 Hi,I don't want PS to diminish the available stock for any order processed on the website, 90% of them are just fake. How can I do to make PS subtract the stock only when the status of an order is changed to "Payment accepted" or "Advance payment accepted"?Thanks Link to comment Share on other sites More sharing options...
shokinro Posted March 12, 2017 Share Posted March 12, 2017 You may need to override validateOrder() function of PaymentModule class and also modify changeIdOrderState() function of OrderHistory class. Inside this function you can find code related to stock management and you will need to modify that based on your own need. 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