source/Application/Model/DiscountList.php
public function getBasketItemBundleDiscounts($oArticle, $oBasket, $oUser = null)
    {
        $aList = [];
        $aDiscList = $this->_getList($oUser)->getArray();
        /** @var \OxidEsales\Eshop\Application\Model\Discount $oDiscount */
        foreach ($aDiscList as $oDiscount) {
            if ($oDiscount->isForBundleItem($oArticle, $oBasket) && $oDiscount->isForBasketAmount($oBasket)) {
                $aList[$oDiscount->getId()] = $oDiscount;
            }
        }

        return $aList;
    }
public function getBasketItemBundleDiscounts($oArticle, $oBasket, $oUser = null)
    {
        $aList = [];
        $aDiscList = $this->_getList($oUser)->getArray();
        /** @var \OxidEsales\Eshop\Application\Model\Discount $oDiscount */
        foreach ($aDiscList as $oDiscount) {
            if ($oDiscount->isForBundleItem($oArticle, $oBasket) && $oDiscount->isForBasketAmount($oBasket)) {
                $aList[$oDiscount->getId()] = $oDiscount;
            }
        }

        return $aList;
    }
public function getBasketItemBundleDiscounts ( $ oArticle , $ oBasket , $ oUser = null ) { $ aList = [ ] ; $ aDiscList = $ this -> _getList ( $ oUser ) -> getArray ( ) ; /** @var \OxidEsales\Eshop\Application\Model\Discount $oDiscount */ foreach ( $ aDiscList as $ oDiscount ) { if ( $ oDiscount -> isForBundleItem ( $ oArticle , $ oBasket ) && $ oDiscount -> isForBasketAmount ( $ oBasket ) ) { $ aList [ $ oDiscount -> getId ( ) ] = $ oDiscount ; } } return $ aList ; }
Returns array of bundle discounts that can be applied for whole basket

@param \OxidEsales\Eshop\Application\Model\Article $oArticle article object
@param \OxidEsales\Eshop\Application\Model\Basket  $oBasket  basket
@param \OxidEsales\Eshop\Application\Model\User    $oUser    user object (optional)

@return array
Returns array of bundle discounts that can be applied for whole basket