1) $currency = ' ' . trim($parts[1]); $price = $value / $product['quantity']; if(!class_exists('calculationHelper')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'calculationh.php'); $calculator = calculationHelper::getInstance (); $calculator->_roundindig = 0; echo $calculator->roundInternal($price, 'salesPrice') . $currency; ?>