View Issue Details

IDProjectCategoryView StatusLast Update
0004730OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2013-12-09 11:11
Reporterc4y Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinux ServerOSDebian 6 
Product Version4.6.5 revision 49955 
Target Version4.7.10 / 5.0.10Fixed in Version4.7.10 / 5.0.10 
Summary0004730: Orderrules with Quantity -> Items would be count double
DescriptionYou have two Categories. a) Wine b) supplies
What i want (but it doesn't work):

1) more than 12 Bottles => free (no more rules)
2) 4 - 11 Bottles => 5.90 Euro (no more rules)
3) 1 - 3 Bottles => 4.90 Euro (no more rules)
4) supplies => 2,90 Euro (no more rules)

But if you take any number of Bottles (wine) and at least one supplie, the bottles are counted double.
Example:
Take one supplie and six bottles of wine, you will get free shipping (false).
Take one supplie and two bottles of wine, you have to pay 5,90 Euro for Shipping (false)
Steps To Reproducesee Description
Additional InformationThe error was also tested in the Demo-Shop from a User in the Forum.
http://forum.oxid-esales.com/showthread.php?t=17156
TagsBasket, Delivery
ThemeBoth
BrowserAll
PHP Version5.3
Database Version5.1

Relationships

related to 0005557 resolvedjurate.baseviciene delivery cost calculation doesn't work correctly when Categories are assigned 
related to 0005650 resolvedHR Wrong shippingcost calculation 
related to 0005645 closedQA Delivery Costs failed 

Activities

leofonic

2012-11-30 10:11

reporter   ~0008031

I think this bug was introduced in 4.5.3 by moving the block

                    if (!$blForBasket) {
                        $iAmount += $iArtAmount;
                    }
out of the if clause
                        if ( $oProduct->inCategory( $sCatId ) ) {
maybe related to 0002679

Linas Kukulskis

2013-11-20 14:50

reporter   ~0009285

added fix in calculation