View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005972 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2014-11-17 13:26 | 2014-11-19 16:25 |
Reporter | Spritje | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 4.9.1 / 5.2.1 | ||||
Summary | 0005972: Discount price calculation is wrong when "quantity from" is set from 0 to 1 | ||||
Description | Discount price calculation works if "quantity from" is set to 0. But the calculation is wrong when "quantity from" is set from 0 to 1. | ||||
Steps To Reproduce | Set article price to 34,95 EUR. Set discount 10% and quantity from 0 to 999999 Article price is now 31,46 EUR <- correct price, see additional information Set discount 10% and quantity from 1 to 999999 Article price is now 31,45 EUR <- wronc calculation | ||||
Additional Information | Article price: 34,95 EUR Discount 10%: 3,495 EUR Price: 31,455 EUR ~ 31,46 EUR correct price | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0005993 | resolved | jurate.baseviciene | Discount does not show up in basket |
|
Hi Thanks a lot for submitting this issue :) . In both case calculation is correct. Because we calculate discount in the different way. It is depends what we set in quantity from 0 or from 1 to 999999. Discounts are calculate in the different place (product details page and in the basket) and in the different way. The first test case:If we have a set: Product the price to 34,95 EUR. Discount 10% and quantity from 0 to 999999 Article price is 31,46 EUR <- BECAUSE -we calculate it 34,95*10/100 then equal is about ~ 31,455, we rounding it and getting 31.46. In this case discount is apply in the product details page. The 2nd test case: If we have a set: Product the price to 34,95 EUR. Set discount 10% and quantity from 1 to 999999 Article price is now 31,45 EUR <- because -we calculate it: We have a unit price of product 34.95, then we calculate 10% discount from price 34.95 (-34.95*10/100)= -3,495), then from 34,95-3,5=31.45 In this case discount is apply in the basket. Best regards, Jurate |