MikeChoy Posted January 26, 2010 Share Posted January 26, 2010 Testing with an order quantity of 1 placed. At customer end it shows the correct order.But receive mailalert for order + Product out of stock. In my order quantity, it shows quantity increased (in picture shows 50) but actual quantity placed was only 1. This trigger out of stock alert.Somehow 50 was suppose to be my original stock levelIn the back office, the quantity is correct and not out of stock!!?BTW, this was upgraded from 1.1 to SVN 1.2.4 version and testing on another server. ? Is the problemHmmm similar problem and think it was reported in Bug Tracker 3551 Link to comment Share on other sites More sharing options...
prsut Posted January 27, 2010 Share Posted January 27, 2010 looks like my bug report http://www.prestashop.com/bug_tracker/view/3573/hints enclosed. Link to comment Share on other sites More sharing options...
MikeChoy Posted January 27, 2010 Author Share Posted January 27, 2010 I think it is in classes/cart.php . Made a file comparison with my working site and test site. I think you are right....but I'm no expert and don't know what to change to correct e errorThanks for the finding. Link to comment Share on other sites More sharing options...
prsut Posted January 27, 2010 Share Posted January 27, 2010 in classes/cart.phpfind line (in my system it is line 249) $row['stock_quantity'] = intval($row['quantity']); after this line insert new line $row['quantity'] = intval($row['cart_quantity']); Hope this help. Link to comment Share on other sites More sharing options...
MikeChoy Posted January 28, 2010 Author Share Posted January 28, 2010 Hi Prsut, Its great...Its working!.... Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts