public function GetBasketQuantityForDiscount(TdbShopDiscount &$oDiscount)
    {
        // get the sum of all products (we exclude products with "fieldExcludeFromDiscounts")
        $iCurrentPosition = $this->getItemPointer();
        $this->GoToStart();
        $iAmount = 0;
        while ($oItem = &$this->Next()) {
            $bIncludeProduct = $oDiscount->AllowDiscountForArticle($oItem);
            if ($bIncludeProduct) {
                $iAmount = $iAmount + $oItem->dAmount;
            }
        }
        $this->setItemPointer($iCurrentPosition);

        return $iAmount;
    }