moy2010 Posted October 5, 2015 Share Posted October 5, 2015 (edited) Hi, Prestashop community. I'm having this weird issue that, if I google it, is supposed to be already fixed:// Creating order341. $result = $order->add();342.343. if (!$result) {344. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true);345. throw new PrestaShopException('Can\'t save Order');346. }347.348. // Amount paid by customer is not the right one -> Status = payment error349. // We don't use the following condition to avoid the float precision issues : http://www.php.net/manual/en/language.types.float.php350. // if ($order->total_paid != $order->total_paid_real) The compared strings values are supposed to not be the same, but how could that be? It just suddenly happened. The only thing that comes to my mind is that I updated my catalogue prices on friday using a csv file, but some orders have been created satisfactorily since then :S. Has anyone else experienced this? Edited October 7, 2015 by moy2010 (see edit history) Link to comment Share on other sites More sharing options...
moy2010 Posted October 7, 2015 Author Share Posted October 7, 2015 Solved it. If anyone experiences this, I recommend to check out for any database problems. In my case, the table ps_specific_price was corrupted, hence no new orders could be created/saved. 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