- Posts: 43
- Thank you received: 0
OS Property support center
Currency Symbol
- Apurv
- Topic Author
- Offline
- Senior Member
-
Less
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
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.
- Murathan
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
11 years 2 months ago #41899
by Murathan
Replied by Murathan on topic Re: Currency Symbol
how to make for other currencies
AZN Azerbaijan
AZN Azerbaijan
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
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.
- Murathan
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
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 ΰ
id currency_name currency_code currency_symbol
61 Azerbaijanian Manat AZN ΰ
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
OK, and the currency symbol is being shown correctly?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
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
OK, and the currency symbol is being shown correctly?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Murathan
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
11 years 2 months ago #41915
by Murathan
Replied by Murathan on topic Re: Currency Symbol
ISO 4217 icon
- Murathan
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
11 years 2 months ago #41916
by Murathan
Replied by Murathan on topic Re: Currency Symbol
site shows
- Murathan
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
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. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.