## ??? how to round taxes up or down to nearest 5 or 10 cent increment

can anyone tell me how to make taxes round to nearest 5 or 10 number? i live in switzerland where the penny does not exist - smallest coin is a nickel. been trying for hours to find a solution.. would think that it would lie in the following files below, but al lmy attempts to modify were moot...

or is there a parameter in admin that i am missing? i have heard on forums people complaing that zen automatically rounds up the number - in my case i wish it would....

if anyone can help solve his i will send a bix box of swiss chocolates :-)

in includes/functions/functions_taxes.php :

// Calculates Tax rounding the result
function zen_calculate_tax(\$price, \$tax) {
global \$currencies;
// \$result = bcmul(\$price, \$tax, \$currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
// \$result = bcdiv(\$result, 100, \$currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
// return \$result;
return zen_round(\$price * \$tax / 100, \$currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
}

////

and......

in includes/classes/order.php:

/*********************************************
* Calculate taxes for this product
*********************************************/
\$shown_price = (zen_add_tax(\$this->products[\$index]['final_price'], \$this->products[\$index]['tax']) * \$this->products[\$index]['qty'])
\$this->info['subtotal'] += \$shown_price;

// find product's tax rate and description
\$products_tax = \$this->products[\$index]['tax'];
\$products_tax_description = \$this->products[\$index]['tax_description'];

if (DISPLAY_PRICE_WITH_TAX == 'true') {
// calculate the amount of tax "inc"luded in price (used if tax-in pricing is enabled)
\$tax_add = \$shown_price - (\$shown_price / ((\$products_tax < 10) ? "1.0" . str_replace('.', '', \$products_tax) : "1." . str_replace('.', '', \$products_tax)));
} else {
// calculate the amount of tax for this product (assuming tax is NOT included in the price)
\$tax_add = zen_round((\$products_tax / 100) * \$shown_price, \$currencies->currencies[\$this->info['currency']]['decimal_places']);
}