Change Currency symbol

Support questions related to PHP Point Of Sale 10.0

Change Currency symbol

Postby jezza » Sat Jan 09, 2010 1:37 pm

Hi

I am trying to change currency symbol from '$' to '£'. In currency helper php I have changed return '$' to return '£' but only get ? marks where it should be in items view etc. If I change this to other characters such as ",* etc it displays them OK also if I add GBP that is displayed also.
Any Ideas why £ should cause a problem.

Thanks

Jezza
jezza
 
Posts: 10
Joined: Sat Jan 02, 2010 6:32 pm

Re: Change Currency symbol

Postby blasto333 » Sat Jan 09, 2010 3:01 pm

It is most likely due to not using utf-8 encoding. Check in applications/views/header.php
blasto333
Site Admin
 
Posts: 130
Joined: Tue Dec 01, 2009 7:34 am

Re: Change Currency symbol

Postby jezza » Wed Mar 10, 2010 2:18 am

Checked coding and is set to utf-8, and other ideas

Thanks
jezza
 
Posts: 10
Joined: Sat Jan 02, 2010 6:32 pm

Re: Change Currency symbol

Postby c0rdawg » Wed Mar 10, 2010 7:25 pm

Doubt this will work, but maybe try using the HTML entity instead?

£ or £
c0rdawg
Developer
 
Posts: 1
Joined: Tue Dec 01, 2009 10:12 am

Re: Change Currency symbol

Postby tmoore » Mon Mar 15, 2010 11:24 am

Have you tried to place a \ in front of it?

jezza wrote:Hi

I am trying to change currency symbol from '$' to '£'. In currency helper php I have changed return '$' to return '£' but only get ? marks where it should be in items view etc. If I change this to other characters such as ",* etc it displays them OK also if I add GBP that is displayed also.
Any Ideas why £ should cause a problem.

Thanks

Jezza
Best Regards,
Tom Moore
tmoore
 
Posts: 15
Joined: Sat Mar 13, 2010 10:15 am
Location: Jennings, OK USA

Re: Change Currency symbol

Postby lutvia » Wed May 05, 2010 3:02 am

find and change following file name : currency_helper.php
Code: Select all
<?php
function to_currency($number)
{
   return '$'.number_format($number, 2, '.', '');
}
?>


the way to change currency :
Code: Select all
return ' your currency '.number_format($number, 2, '.', '');
lutvia
 
Posts: 2
Joined: Wed May 05, 2010 2:45 am

Re: Change Currency symbol

Postby jezza » Mon May 17, 2010 3:07 pm

c0rdawg wrote:Doubt this will work, but maybe try using the HTML entity instead?

&pound; or &#163;


Thanks &pound worked.
jezza
 
Posts: 10
Joined: Sat Jan 02, 2010 6:32 pm


Return to PHP Point Of Sale 10.0

Who is online

Users browsing this forum: No registered users and 1 guest