oxid 4.9x Bug in Bestellansicht “Stamm” im Admin

Oxid Source: Man kann den Fehler, ausgelöst durch getweight() und getsize(), durch folgenden Eingriff beheben: oxdelivery.php ab Zeile 238 folgendes ersetzen:

case self::CONDITION_TYPE_WEIGHT: // weight
if ($this->getCalculationRule() == self::CALCULATION_RULE_FOR_EACH_PRODUCT) {
$dAmount += $oProduct->getWeight();
} else {
$dAmount += $oBasketItem->getWeight();
}
break;
case self::CONDITION_TYPE_SIZE: // size
$dAmount += $oProduct->getSize();
if ($this->getCalculationRule() != self::CALCULATION_RULE_FOR_EACH_PRODUCT) {
$dAmount *= $oBasketItem->getAmount();
}
break;
case self::CONDITION_TYPE_AMOUNT: // amount
$dAmount += $oBasketItem->getAmount();
break;
}

mit:

case self::CONDITION_TYPE_WEIGHT: // weight
if ($this->getCalculationRule() == self::CALCULATION_RULE_FOR_EACH_PRODUCT) {
$dAmount += $oProduct->oxarticles__oxweight->value;
} else {
$dAmount += $oBasketItem->getWeight();
}
break;
case self::CONDITION_TYPE_SIZE: // size
$dAmount += $oProduct->oxarticles__oxlength->value *
$oProduct->oxarticles__oxwidth->value *
$oProduct->oxarticles__oxheight->value;
if ($this->getCalculationRule() != self::CALCULATION_RULE_FOR_EACH_PRODUCT) {
$dAmount *= $oBasketItem->getAmount();
}
break;
case self::CONDITION_TYPE_AMOUNT: // amount
$dAmount += $oBasketItem->getAmount();
break;
}

Speichere in deinen Favoriten diesen Permalink.

Die Kommentare sind geschlossen.