I use for my website 2 decimals because of taxes, but i don't have any price with decimal.
Is there a way to hide them ?
something like: IF DECIMAL = 00 HIDE
thanks
Hi deeppxtz,
If you are still looking for a solution, try to edit app\functions\smarty_plugins\modifier.format_price.php with the following:
Add
$rem_price = $price - floor($price); if ($rem_price == 0) { $currency['decimals'] = 0; }
Before
gthtl $value = fn_format_rate_value( $price, $number_type, $currency['decimals'], $currency['decimals_separator'], $currency['thousands_separator'], $currency['coefficient'] );
Best regards,
Alt-team