- Posts: 3
- Thank you received: 0
Changing currency symbol
- vijaysaijnv
-
Topic Author
- Offline
Less
More
15 years 6 months ago #10569
by vijaysaijnv
Changing currency symbol was created by vijaysaijnv
i want to change my currency symbol from Rs. to [img size=7px]
upload.wikimedia.org/wikipedia/commons/t...Rupee_symbol.svg.png
[/img]. any one please tell me how to put dat image sybol instead of text.plz!!!!!!!!
Please Log in or Create an account to join the conversation.
15 years 6 months ago #10591
by nicolas
Replied by nicolas on topic Re: Changing currency symbol
The Indian rupee symbol seems to have changed last year. So indeed you can't use the unicode symbol which won't display on most computers until at least few years.
So, the solution will be to edit your currency via the menu System->Currencies and change the currency symbol to something like this:
<img src=" www.hikashop.com/media/kunena/attachment...ian_Rupee_symbol.png " />
But before that, you will have to change the code:
hikashop::secureField($column);
if($column=='currency_locale'){
to:
hikashop::secureField($column);
if($column=='currency_symbol'){
jimport('joomla.filter.filterinput');
$safeHtmlFilter = & JFilterInput::getInstance(null, null, 1, 1);
$currency->$column = $safeHtmlFilter->clean($value, 'string');
}elseif($column=='currency_locale'){
in the file administrator/components/com_hikashop/classes/currency.php in order to allow HTML code in the currency symbol field.
We will include that modification in HikaShop in next release so that Indians can easily change the currency symbol to an image when they need to.
So, the solution will be to edit your currency via the menu System->Currencies and change the currency symbol to something like this:
<img src=" www.hikashop.com/media/kunena/attachment...ian_Rupee_symbol.png " />
But before that, you will have to change the code:
hikashop::secureField($column);
if($column=='currency_locale'){
to:
hikashop::secureField($column);
if($column=='currency_symbol'){
jimport('joomla.filter.filterinput');
$safeHtmlFilter = & JFilterInput::getInstance(null, null, 1, 1);
$currency->$column = $safeHtmlFilter->clean($value, 'string');
}elseif($column=='currency_locale'){
in the file administrator/components/com_hikashop/classes/currency.php in order to allow HTML code in the currency symbol field.
We will include that modification in HikaShop in next release so that Indians can easily change the currency symbol to an image when they need to.
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds