Nekem több pénznem esetén amikor az alapár USD a következő megoldás segítette. Még nincs végig tesztelve, hogy kosárban, visszaigazoló emailban is végig jó-e de elsőre úgy tűnik igen.
Tehát a megoldásom:
administrator/compontns/com_virtuemasrt/helpers/currencydisplay.php fájlt kell módosítani:
Ebben a function roundForDisplay résztbe illesztettem be a következő kódot.
Code:
} elseif($this->_numeric_code===348){
$price = round((float)$price * 2,-1) * 0.5;
}
A teljes function roundForDisplay így néz ki:
Code:
public function roundForDisplay($price, $currencyId=0,$quantity = 1.0,$inToShopCurrency = false,$nb= -1){
$currencyId = $this->getCurrencyForDisplay($currencyId);
if($nb==-1){
$nb = $this->_nbDecimal;
}
$price = (float)$price * (float)$quantity;
$price = $this->convertCurrencyTo($currencyId,$price,$inToShopCurrency);
if($this->_numeric_code===756 and VmConfig::get('rappenrundung',FALSE)=="1"){
$price = round((float)$price * 2,1) * 0.5;
} elseif($this->_numeric_code===348){
$price = round((float)$price * 2,-1) * 0.5;
} else {
$price = round($price,$nb);
}
return $price;
}