Calculate round retail prices for opencart
问题 Maybe someone has a clue. I want to round the retail prices to nice numbers in opencart. Base calculation is: (wich should produce € 1,50 - €2,00 - € 2,50 etc) $price = sprintf("%.2f", round($pice * 2) / 2); I thought i'dd do it like this in controler/product/product.php but that ain't working. I don't want to edit all theme .tpl so it has to be done in the opencart code. Now i have this but I get values of €0.49 or €0.99 $price_new = $this->tax->calculate($result['price'], $result['tax_class