Changing currency symbol

  • Posts: 3
  • Thank you received: 0
10 years 4 months ago #10569

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!!!!!!!!

Attachments:

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

  • Posts: 73432
  • Thank you received: 11245
  • MODERATOR
10 years 4 months ago #10591

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.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum