View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002225 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2010-11-25 10:13 | 2023-11-29 15:11 |
Reporter | kikiss | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.4.1 revision 28950 | ||||
Summary | 0002225: Incorrect currency managent in basket | ||||
Description | Normally 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 Information | Solution: In the method getBasketPrice() of oxarticle.php, the line: $this->_applyCurrency( $oBasketPrice ); has to be changed to: $this->_applyCurrency( $oBasketPrice, $oBasket->getBasketCurrency() ); | ||||
Tags | Basket, Currency, Product domain and basket rewrite | ||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||