View Issue Details

IDProjectCategoryView StatusLast Update
0002573OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2012-12-07 15:07
ReporterSpritje 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.7 revision 33396 
Target VersionFixed in Version4.4.8 revision 34028 
Summary0002573: it is reproducable in 4.4.6 and 4.4.7
Descriptionif a discount is configurerd in 4.4.6 and above and you put more than one article in the basket, you get the discount item for each article in basket, not only once.

In version 4.4.0 it works fine.
Additional InformationProblem seems to be in core/oxbasket.php.


    /**
     * Adds bundles to basket
     *
     * @param array $aBundles added bundle articles
     *
     * @return null
     */
    protected function _addBundlesToBasket( $aBundles )
    {
        foreach ( $aBundles as $sBundleId => $dAmount ) {
            if ( $dAmount ) {
                try {
                    if ( $oBundleItem = $this->addToBasket( $sBundleId, $dAmount, null, null, false (<- should be true), true ) ) {
                        $oBundleItem->setAsDiscountArticle( true );
                    }
                } catch(oxArticleException $oEx) {
                    // caught and ignored
                }
            }
        }

    }
TagsDiscount
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

Spritje

2011-03-01 14:29

developer  

discount.jpg (184,728 bytes)
discount.jpg (184,728 bytes)

Spritje

2011-03-01 14:32

developer   ~0004161

Last edited: 2011-03-02 08:06

View 2 revisions

discount configutation see jpg attached

Spritje

2011-03-02 08:24

developer  

Spritje

2011-03-02 08:24

developer  

birute_meilutyte

2011-05-20 13:05

reporter   ~0004630

Reminder sent to: Spritje

Hello,

sorry, but i can not reproduce the case. could you please let us know if you still experience same problem on our latest eShop 4.5.0 version? also, is there some categories or products assigned to this discount (in Products tab)?

greetings,

Spritje

2011-05-23 11:59

developer   ~0004642

It is reproducable in 4.4.6 and 4.4.7.

In 4.4.8 and 4.5.0 it can not be reproduced.
So bug entry can be closed.