Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

deliverycost-calculation core-error

$
0
0
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

PHP Code:

foreach ( $aDeliveryCategories as $sCatId ) {
   if ( 
$oProduct->inCategory$sCatId ) ) {
      
$blUse true;
      
$iArtAmount $this->getDeliveryAmount$oContent );
      if ( 
$this->oxdelivery__oxfixed->value ) {
         if ( 
$this->_isForArticle$oContent$iArtAmount ) ) {
            
$blForBasket true;
         }
      }
      if (!
$blForBasket) {
         
$iAmount += $iArtAmount;
      }
   }


sourcecode 4.7.8 model oxdelivery.php

PHP Code:

foreach ( $aDeliveryCategories as $sCatId ) {
   if ( 
$oProduct->inCategory$sCatId ) ) {
      
$blUse true;
      
$iArtAmount $this->getDeliveryAmount$oContent );
      if ( 
$this->oxdelivery__oxfixed->value ) {
         if ( 
$this->_isForArticle$oContent$iArtAmount ) ) {
             
$blForBasket true;
         }
      }
      break;
   }
}
if (!
$blForBasket) {
   
$iAmount += $iArtAmount;



Viewing all articles
Browse latest Browse all 6951

Trending Articles