Price number format on Smarty
use plugin for smarty 3.x
http://www.smarty.net/docs/en/api.register.plugin.tpl
Code example :
$smarty = new Smarty;$smarty->registerPlugin("modifier", "number_format", "number_format");
and in smarty tpl file you code html like this :
...<td style="text-align:right;border: 1px solid black;border-collapse: collapse;">{$upah|number_format:2:",":"."}</td>...
Note : "," is decimal simbol and "." is thousand sparator, you can interchange it.