View Issue Details

IDProjectCategoryView StatusLast Update
0005061OXID eShop (all versions)1.03. Basket, checkout processpublic2014-03-04 11:28
ReporterBergfreunde Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.7.4 / 5.0.4 revision 57063 
Fixed in Version4.7.5 / 5.0.5 
Summary0005061: Affiliates - Discountnetprice is always 0
DescriptionIn thankyou.tpl there is a variable "discountnetprice" which is used for affiliate-programs (netto-price after discounts etc.). To get the value the basket-function getDiscountedNettoPrice() is called, but it returns always "0"

As far as we could reproduce it, the variable "$this->_dDiscountedProductNettoPrice" is never set. So either it should be set within the basket or the function should be like that:

    public function getDiscountedNettoPrice()
    {
        if ( $this->_oNotDiscountedProductsPriceList ) {
            // return $this->_dDiscountedProductNettoPrice + $this->_oNotDiscountedProductsPriceList->getNettoSum();
            return $this->_oDiscountProductsPriceList->getNettoSum() + $this->_oNotDiscountedProductsPriceList->getNettoSum();
        }
        return false;
    }
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

vaidas.matulevicius

2013-04-15 16:20

reporter   ~0008610

Method oxBasket::getDiscountedNettoPrice() marked as deprecated.
Instead of it use oxBasket::getNettoSum(), when shop is in Brutto mode.
And oxBasket::getNettoSum()-[total discounts sum]-[total vouchers sum], when shop is in Netto mode.