OS Property support center

Currency Symbol

  • Apurv
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 2 months ago #41891 by Apurv
Currency Symbol was created by Apurv
I am using default currency as INR, How to show the currency symbol for INR. One option would be to use webrupee.com/ But how to do that ?

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41893 by Mr. Dam
Replied by Mr. Dam on topic Re: Currency Symbol
Hi,
To show Rupee currency symbol in your OS Property system, please follow these steps
1. Open file
components > com_osproperty > osproperty.php
2. find
$document->addStyleSheet(' fonts.googleapis.com/css?family=Oswald:700 ');
and change to
$document->addStyleSheet(' fonts.googleapis.com/css?family=Oswald:700 ');
$document->addStyleSheet(' cdn.webrupee.com/font ');
3. Open file
components > com_osproperty > helpers > common.php
find function : loadCurrency

function loadCurrency($curr){
global $mainframe,$configClass;
$db = Jfactory::getDBO();
if(intval($curr) == 0){
//$curr = $configClass;
$db->setQuery("Select fieldvalue from #__osrs_configuration where fieldname like 'general_currency_default'");
$curr = $db->loadResult();
}
$db = JFactory::getDbo();

$db->setQuery("Select currency_symbol from #__osrs_currencies where id = '$curr'");
$curr = $db->loadResult();
$curr = str_replace("\r","",$curr);
$curr = str_replace("\n","",$curr);

return $curr;
}

and change it to

function loadCurrency($curr){
global $mainframe,$configClass;
$db = Jfactory::getDBO();
if(intval($curr) == 0){
//$curr = $configClass;
$db->setQuery("Select fieldvalue from #__osrs_configuration where fieldname like 'general_currency_default'");
$curr = $db->loadResult();
}
$db = JFactory::getDbo();
if($curr == 24){
return '<span class="WebRupee">Rs.</span>';
}else{
$db->setQuery("Select currency_symbol from #__osrs_currencies where id = '$curr'");
$curr = $db->loadResult();
$curr = str_replace("\r","",$curr);
$curr = str_replace("\n","",$curr);

return $curr;
}
}

Good luck
Dam

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41899 by Murathan
Replied by Murathan on topic Re: Currency Symbol
how to make for other currencies
AZN Azerbaijan

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41900 by Mr. Dam
Replied by Mr. Dam on topic Re: Currency Symbol
Hi Murathan,
AZN Azerbaijan isn't existing in the Currencies database of OS Property, you should add it into Currencies table of OS Property by using phpmyadmin to add record into database table #__osrs_currencies, and currency symbol maH
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41901 by Murathan
Replied by Murathan on topic Re: Currency Symbol
I added the
id currency_name currency_code currency_symbol
61 Azerbaijanian Manat AZN &#944;

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41908 by Mr. Dam
Replied by Mr. Dam on topic Re: Currency Symbol
Hi,
OK, and the currency symbol is being shown correctly?
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41909 by Mr. Dam
Replied by Mr. Dam on topic Re: Currency Symbol
Hi,
OK, and the currency symbol is being shown correctly?
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41915 by Murathan
Replied by Murathan on topic Re: Currency Symbol
ISO 4217 icon
Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41916 by Murathan
Replied by Murathan on topic Re: Currency Symbol
site shows
Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #41917 by Murathan
Replied by Murathan on topic Re: Currency Symbol
I think this is not the right kind

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan