I used this Hook:
<?php
# Cart Currency Hook v1.0
# Written by brian!
use WHMCS\Database\Capsule;
function cart_currency_hook($vars) {
$client = Menu::context('client');
if ($client) {
$currencydb = Capsule::table('tblcurrencies')->where('id',$client->currencyId)->first();
}
elseif (isset($_SESSION["currency"])) {
$currencydb = Capsule::table('tblcurrencies')->where('id',$_SESSION["currency"])->first();
}
else {
$currencydb = Capsule::table('tblcurrencies')->where('default','1')->first();
}
$currency = json_decode(json_encode($currencydb),true);
return array ("currency" => $currency);
}
add_hook("ClientAreaPage", 1, "cart_currency_hook");
and it is working.
the rawpricing array would always be x.xx as it's not currency formatted... if you were in a hook, you'd have more options to apply a format to a value, but in the template, string replacing might be the simplest option
Thank you. i will try to make a Hook for that.