Jump to content

[SOLVED] Error on order creation: Total paid is not equal


Recommended Posts

Hi, Prestashop community. I'm having this weird issue that, if I google it, is supposed to be already fixed:

// Creating order
341. $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 error
349. // We don't use the following condition to avoid the float precision issues : http://www.php.net/manual/en/language.types.float.php
350. // 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 by moy2010 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...