kandalf Posted May 26, 2018 Share Posted May 26, 2018 I think I have a but on my prestashop 1.7 (last version), I have some products with quantity equals to 1, when someone buy the last product the the order status go to "in preparation" then changes to "out of stock" and an email is sent (I can cancel that email). The problem is that I have that item in stock, is the last one but I have it, this information is misleading my customers. Anyone have a solution to this problem? How can I prevent the order status to go to out of stock if is the last item in stock? Link to comment Share on other sites More sharing options...
hubert Posted May 27, 2018 Share Posted May 27, 2018 Exactly, i have the same problem on prestashop 1.7.3.3,. I'm looking for a solution, if i will find i let u know asap. Link to comment Share on other sites More sharing options...
kandalf Posted May 27, 2018 Author Share Posted May 27, 2018 5 minutes ago, hubert said: Exactly, i have the same problem on prestashop 1.7.3.3,. I'm looking for a solution, if i will find i let u know asap. Thank you this is really a strange bug, probably more people are getting the same error. Link to comment Share on other sites More sharing options...
hubert Posted May 27, 2018 Share Posted May 27, 2018 For now i restored my prestashop to 1.7.2.5 and works fine, but it isn't a solution. Link to comment Share on other sites More sharing options...
kandalf Posted May 27, 2018 Author Share Posted May 27, 2018 2 hours ago, hubert said: For now i restored my prestashop to 1.7.2.5 and works fine, but it isn't a solution. This is not a good solution for me I need version 1.7.3.2 at least because of my theme. Link to comment Share on other sites More sharing options...
St3rMiN4ToR Posted May 27, 2018 Share Posted May 27, 2018 I think this issue will be fixed with the 1.7.4.0 version. http://forge.prestashop.com/browse/BOOM-5391 Link to comment Share on other sites More sharing options...
hubert Posted May 27, 2018 Share Posted May 27, 2018 @Kandalf yes i know, i have to use 1.7.3.x as well. @St3rMiN4ToR thank u! Link to comment Share on other sites More sharing options...
hubert Posted May 27, 2018 Share Posted May 27, 2018 (edited) @St3rMiN4ToR thank you again, thanks your link i found pull request with fix. @kandalf let's try to modify classess/PaymentModule.php (741 line) and change condition from (.... <= 0) to ( ... <0) like here: https://github.com/PrestaShop/PrestaShop/pull/8985/commits/942747cc066aca2d93532b487ba7d210bbf4be13 screen for sure: Edited May 27, 2018 by hubert (see edit history) Link to comment Share on other sites More sharing options...
kandalf Posted May 28, 2018 Author Share Posted May 28, 2018 I will apply this fix until the version 1.7.4 is released, I only don't understand is how this works on previous versions since "if" was not changed in the last version. Link to comment Share on other sites More sharing options...
hubert Posted May 28, 2018 Share Posted May 28, 2018 Dunno, maybe order flow was changed. It will be a good solution until the 1.7.4 version (i hope). Link to comment Share on other sites More sharing options...
Virous.2016 Posted April 15, 2020 Share Posted April 15, 2020 i still have this problem in prestashop 1.7.6.4 i checked that class and it was same as that screenshot but i still get some order with -1 qty or more Link to comment Share on other sites More sharing options...
requnael Posted December 10, 2020 Share Posted December 10, 2020 found anyone fix for it? Link to comment Share on other sites More sharing options...
raymondred Posted December 10, 2020 Share Posted December 10, 2020 (edited) On 4/15/2020 at 6:52 PM, Virous.2016 said: i still have this problem in prestashop 1.7.6.4 i checked that class and it was same as that screenshot but i still get some order with -1 qty or more Could you please let me know if you got the solution Thanks acnl hair color guide Edited December 11, 2020 by raymondred (see edit history) 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