Open pelechano opened 1 month ago
Hello @pelechano ,
I can't reproduce your issue.
Could you share the whole configuration of the product, the discount and send a screenshot of the result you have in your cart ?
Waiting for your feedback. Thanks!
Prerequisites
Describe the bug and add attachments
In Cart Rule.php when suming the price in $selected_products_reduction it takes into account the price_without_reduction so the value is greater than expected
Expected behavior
If you use $price = $product['price_with_reduction']; the sum is correct so the reduction percentage is calculated with respect the real price of the selected product/s
Steps to reproduce
Create a discount (cart rule) with selection of products. Use a Percentage discount and apply them to Selected products Some of the Selected products have a specific price discount. The discount is greater than expected because uses the price_without_reduction in the sum
PrestaShop version(s) where the bug happened
1.7.8 and 8.1
PHP version(s) where the bug happened
7.4
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
No response