After the update to version 4.7.10 there is an error in the deliverycost-calculation. For each delivery-category oxid amount the checksum. In my example there are two delivery-categories. One with deliverycost to xx€ and one from xx€. And for each category the amount ($iAmount) would be increased, what is wrong.
sourcecode 4.7.10 model oxdelivery.php
sourcecode 4.7.8 model oxdelivery.php
sourcecode 4.7.10 model oxdelivery.php
PHP Code:
foreach ( $aDeliveryCategories as $sCatId ) {
if ( $oProduct->inCategory( $sCatId ) ) {
$blUse = true;
$iArtAmount = $this->getDeliveryAmount( $oContent );
if ( $this->oxdelivery__oxfixed->value > 0 ) {
if ( $this->_isForArticle( $oContent, $iArtAmount ) ) {
$blForBasket = true;
}
}
if (!$blForBasket) {
$iAmount += $iArtAmount;
}
}
}
PHP Code:
foreach ( $aDeliveryCategories as $sCatId ) {
if ( $oProduct->inCategory( $sCatId ) ) {
$blUse = true;
$iArtAmount = $this->getDeliveryAmount( $oContent );
if ( $this->oxdelivery__oxfixed->value > 0 ) {
if ( $this->_isForArticle( $oContent, $iArtAmount ) ) {
$blForBasket = true;
}
}
break;
}
}
if (!$blForBasket) {
$iAmount += $iArtAmount;
}