Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Screenshots





Additionnal information
PrestaShop version: 1.7.5.0
PHP version: 7.2
Hi @hanicab,
Thanks for your report.
I manage to reproduce the issue with PS1.7.6.0beta1 & PS1.7.5.2.
The cart rule:
PS1.7.6.0:

PS1.7.5.2

In the FO => ok

I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!
@khouloudbelguith Thank you for your reply
I want to tell that I have also an incorrect discount if the cart rule is without any product restriction.
Can you try to reproduce this please ?
@hanicab, it is a different issue?
this discount is added from the BO? / FO?
Thanks!
it is different in just 1 step.
when you create the cart rule, no need to set a product restriction to the cart rule. (just empty coupon code and discount amount)
then try to add any product to any existing order, you will see that the total order wiol be incorrect
@hanicab, yes you are right.
Thanks!
@khouloudbelguith You are welcome,
I think that it will be better to add that as comment in the issue , it can be important for devloppers when resolving problem
@hanicab, yes, I just edited my last comment.
Thanks!
@MatShir do you know if this issue has been fixed with the page migration ?
In stand-by waiting for the order page to be fully migrated.
We need to check if the issue is still present once all order PRs have been merged.
This issue needs to be tested with the new migrated order page. If it is not fixed, it should be fixed in 178.
Hi @Progi1984,
I tried with the branch 1.7.7.x (Migrated Order page)

The price of the product is incorrect ( It is displayed Tax excluded => but it should be tax included)
It only occurs with dummy data (order created by default) => #17994 / This issue does not occur with an order created manually. :notebook: NOTE : This will be fixed in 1.7.8:notebook:
discount value = price of the product => different from the FO

The block discount is not displayed

Total => incorrect
Thanks!
Thanks @khouloudbelguith for testing this. I would recommend to fix it in 178 then. What do you think @Progi1984 ?
@colinegin In the last comment, I think we can fix the last item "The block discount is not displayed" for 177x. May be we should divide this comment in multiple issues ?
Alright, let's do it then !
About issue 2 : discount value = price of the product => different from the FO
@khouloudbelguith i'm not sure I understood the problem. Could you give me more details please?
And also about issue 4 : total => incorrect. Do you know where is the issue ?
Hi @colinegin,
About issue 2 : discount value = price of the product => different from the FO
@khouloudbelguith i'm not sure I understood the problem. Could you give me more details please?
Thre is a difference between the BO and the FO when the sam cart rule is applied.

In the FO, when the cart rule is applied
The discount value = 500 Euro
It is the value discount added

In the BO => Order details page, when the same cart rule is applied on an old order
The discount value = the price of the product added which is different from the discount value in the FO.

Thanks!
Fixed by #18205 & #18204