Jump to content

sales amount does not match with valid orders


Jose F. Garcia

Recommended Posts

Hello everybody,


I have a problem with my prestashop site, version 1.7.5.2

In the costumer menu, costumer X has an amount on sales of ‎£36.72 but when you click in that costumer page, still says that costumer has one valid order for a total amount of 36.72 but the truth is that this costumer only had one order for an amount of ‎£17.41

How can I solve this? this is happening with all the orders. What can I do?


Thank you for your help

Link to comment
Share on other sites

  • 1 month later...

Same problem, We work with Prestashop version 1.7.6.7 and with some customers the sales field does not match with the user orders. We use an own payment module.

We use hookActionValidateOrder hook to change the order reference, but when we changed the reference the total_paid_real field changes to  double the total_paid field. Here is my code:

 

Do you know what is the problem?

// Modify reference if prefix was provided
if ($prefix_order_reference != "") {
$new_reference = $prefix_order_reference.str_pad(strval($order_id), 4, "0", STR_PAD_LEFT);
} else {
$new_reference = $params['order']->reference;
}

// Add reference if information was provided
if ($ws_order_reference != "") {
$new_reference = $new_reference."/".$ws_order_reference;
}

// Assign new reference
$params['order']->reference = $new_reference;

Thanks

Edited by Normando Zubia
Update information (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...