View Issue Details

IDProjectCategoryView StatusLast Update
0002225OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2023-11-29 15:11
Reporterkikiss Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.1 revision 28950 
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 );
$oBasket->onUpdate();

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, Product domain and basket rewrite
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

SvenBrunk

2023-11-29 15:11

administrator   ~0015983

Fixed a long time ago in the suggested way.