View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004758 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2012-11-28 19:05 | 2012-12-07 15:07 |
| Reporter | henrik.steffen | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Platform | all | OS | all | OS Version | all |
| Product Version | 4.5.8 revision 42471 | ||||
| Summary | 0004758: Discount which applies only to one product category doesn't affect payment surcharge/discount | ||||
| Description | If you add a 10% discount which is only valid to a certain product category, and you buy products from this category, and choose payment in advance with 3% allowance (skonto), OXID calculates the 3% based upon the order total amount, not upon the discounted amount. | ||||
| Additional Information | see screenshot from our customer shop attached | ||||
| Tags | Discount | ||||
| Attached Files | |||||
| Theme | Both | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||
| duplicate of | 0004757 | resolved | Linas Kukulskis | Still wrong item discount calculations |
|
|
Don't know where/when this was fixed but here's a fix by module: in oxpayment: public function getBaseBasketPriceForPaymentCostCalc( $oBasket ) { $price = parent::getBaseBasketPriceForPaymentCostCalc($oBasket); $iRules = $this->oxpayments__oxaddsumrules->value; if (count($oBasket->getItemDiscount()) > 0 && ($iRules & self::PAYMENT_ADDSUMRULE_DISCOUNTS) ) { foreach ($oBasket->getItemDiscount() as $key => $discount) { $price -= $discount->dDiscount; } } return oxUtils::getInstance()->fRound($price); } where $oBasket->getItemDiscount() is a method, that returns _aItemDiscounts of oxbasket array. |
|
|
Closed as duplicate of 0004758 |