AFemaleProdigy Posted March 22, 2012 Share Posted March 22, 2012 I have posted this as a bug, but no one is responding and I need assistance right away. Please see the bug tracker for full details. Real quick: I have DENY orders for out of stock items as default. When two people place an order at the same time for the same item and there is not enough stock, the system is allowing backordering when it should DENY. I have checked and checked to make sure it is set to DENY and it is. My items do not have any attributes or anything extra. They are just individual items with no options. I do not have the extra stock and it is causing me to have to issue refunds. Please help!! http://forge.prestashop.com/browse/PSCFI-5165?page=com.atlassian.jirafisheyeplugin%3Acrucible-issuepanel#issue-tabs Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted March 22, 2012 Share Posted March 22, 2012 Hello AFemaleProdigy, In Prestashop, check of goods amount required to purchase is verified in Cart Controller and Order Controller, if you left these controllers, for example for billing module, then the amount check may be absent there, and because of it this conflict can happen. Product denial from the stock is in PaymentModule :: validateOrder () there you should add a check $ cart-> checkQuantities () Best regards. Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted March 28, 2012 Author Share Posted March 28, 2012 Hmmm... that is interesting. I would think that if that is a potential problem for everyone, that Prestashop needs to fix that right away. It has caused huge problems for me having customers pay for items that are not in stock and never should have been available. And for anyone that does not know how to modify code, what you suggest as a solution would be impossible for them. I will see if I can do what you suggested and hope that fixes the problem. Thanks for the input! Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted March 31, 2012 Author Share Posted March 31, 2012 Hello AFemaleProdigy, In Prestashop, check of goods amount required to purchase is verified in Cart Controller and Order Controller, if you left these controllers, for example for billing module, then the amount check may be absent there, and because of it this conflict can happen. Product denial from the stock is in PaymentModule :: validateOrder () there you should add a check $ cart-> checkQuantities () Best regards. So am I supposed to edit that in PayPal? Which file? Thanks! Link to comment Share on other sites More sharing options...
Dh42 Posted March 31, 2012 Share Posted March 31, 2012 Use the paypal validate.php I would wrap the validation process in an if statement to check the quantity first, then either kick an error or proceed. Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted April 27, 2012 Author Share Posted April 27, 2012 Thanks. I will try that. I appreciate the help here. I posted this issue in the bug tracker and basically got blown off. Link to comment Share on other sites More sharing options...
Recommended Posts