View Issue Details

IDProjectCategoryView StatusLast Update
0002225OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2015-12-01 11:03
Status acknowledgedResolutionopen 
Product Version4.4.1 revision 28950 
Target VersionFixed in Version 
Summary0002225: Incorrect currency managent in basket
DescriptionNormally bug does not appear in the shop unless you want manually to set basket currency and recalculate. In general: basket price is not influenced by setBasketCurrency().
Steps To Reproduce$oBasket = clone $this->getSession()->getBasket();
$aCurrencies = $this->getConfig()->getCurrencyArray();
$oCur = reset( $aCurrencies );
$oBasket->setBasketCurrency( $oCur );
$oBasket->calculateBasket( true );

After theese steps basket price stays in shop currency but not of was specified.
Additional InformationSolution:
In the method getBasketPrice() of oxarticle.php,
the line:
$this->_applyCurrency( $oBasketPrice );
has to be changed to:
$this->_applyCurrency( $oBasketPrice, $oBasket->getBasketCurrency() );
TagsBasket, Currency
ThemeNot defined
PHP VersionNot defined
MySQL VersionNot defined


There are no notes attached to this issue.