View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006375 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2016-04-14 13:01 | 2016-09-14 08:27 |
Reporter | justmike | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 4.9.7 / 5.2.7 | ||||
Summary | 0006375: Cumulation of discounts leads to wrong price calculation | ||||
Description | If multiple discounts apply on one product the calculated discounted price is wrong. Discount 1: 10% Discount 2: 18% should result in an overall discount of 28%. However, OXID calculates an overall discount of 26.2% | ||||
Steps To Reproduce | This one can be easily reproduced in the demo shop: https://demoshop.oxid-esales.com/professional-edition Kite Core GTS (Artnr 1208): normal price: 879.- Discount1: 10% Discount2: 18% should lead to discounted price of 632.88.- (minus 28%) However, OXID calculates 648.7.- (minus 26.2%) | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | 5.6 | ||||
Database Version | 5.5 | ||||
|
If multiple discounts apply to one product the shop calculates the first discount on article price and then from the discounted price the secound discount. Price Discount Calculation 879,00 € 10% 791,10 € 791,10 € 18% 648,70 € wrong calculation Price Discount Calculation 879,00 € 10% 87,90 € 879,00 € 18% 158,22 € 632,88 € right calculation |
|
https://github.com/OXID-eSales/oxideshop_ce/pull/419 |
|
works as designed |