Please add this code to your MyHome Child Theme functions.php file


 


function moneyFormatIndia($num) {
$explrestunits = "";
if (strlen($num) > 3) {
$lastthree = substr($num, strlen($num) - 3, strlen($num));
$restunits = substr($num, 0, strlen($num) - 3);
$restunits = (strlen($restunits) % 2 == 1) ? "0" . $restunits : $restunits;
$expunit = str_split($restunits, 2);
for ($i = 0; $i < sizeof($expunit); $i++) {
if ($i == 0) {
$explrestunits .= (int) $expunit[$i] . ",";
} else {
$explrestunits .= $expunit[$i] . ",";
}
}
$thecash = $explrestunits . $lastthree;
} else {
$thecash = $num;
}
return $thecash;
}


add_filter('myhome_price_value', function ($price, $key, $decimalSep, $thousandsSep, $value) {
return moneyFormatIndia($value);
}, 10, 5);