View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007325 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2022-06-20 11:05 | 2024-08-15 14:22 |
Reporter | aggrosoft | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Summary | 0007325: Discount calculation ignores scale prices | ||||
Description | When discounts are calculated for basket that have a defined price range then the scale prices will be ignored. | ||||
Steps To Reproduce | Create a product like this: base price: 10 € scale price from amount: 2 scale price to amount: 99999 scale price: 1 € Create discount: from amount: 1 to amount: 99999 from price: 50 € to price: 99999 € discount: 5% [QS edit:] add article to discount Now put the product into basket with quantity 5 - discount will be applied even though basket total is 5€ | ||||
Additional Information | The problem lies in \OxidEsales\EshopCommunity\Application\Model\Discount function isForBasketAmount which uses this: if (($oPrice = $oBasketArticle->getPrice())) { $dAmount += ($oPrice->getPrice() * $oBasketItem->getAmount()) / $dRate; } instead of using the basket price if (($oPrice = $oBasketArticle->getBasketPrice($oBasketItem->getAmount(), $oBasketItem->getSelList(), $oBasket))) { $dAmount += ($oPrice->getPrice() * $oBasketItem->getAmount()) / $dRate; } | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
Dear aggrosoft, this behavior cannot be reproduced in my reference shop of 6.4 and 6.3. I documented my behavior here (link is valid for 7 days): https://oxidesalesag.sharepoint.com/:f:/s/Support/EjFR7g4UpDFBiW3794hXSKoBOue7wxApZVQ7YArer5HB9w?e=3OxJCJ Which shop version do you have? do you have any modul active? Best Regard QA -SG- |
|
Sorry my bug report missed a little detail, this will only happen if the discount is assigned to either the product directly or to one of the categories of the product. |
|
Dear aggrosoft, thank you for your feedback! I could reproduce the issue. Best Regards QA -SG- |
|
Duplicate of 0006657 |