PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Installation & Upgrades (http://www.photopost.com/forum/classifieds-installation-upgrades/)
-   -   How can I change the currency (http://www.photopost.com/forum/classifieds-installation-upgrades/107591-how-can-i-change-currency.html)

snaketorque April 22nd, 2004 07:35 AM

How can I change the currency
 
Hi

Where am I able to change the currency?

Thanks

snaketorque April 22nd, 2004 10:38 AM

Ok, found this and the currency is hard coded into the php files, there are moer currencies out there than the US Dollar. B=0 B=0

Showcat.php and showproduct.php need to be edited.

You might want to throw this in as a variable within the admin CP in the future.

Rob

Chris2707 April 22nd, 2004 10:50 AM

That's disappointing. I just ordered and I might have held back if I'd known. I'm amazed that such a basic thing is hard coded - I can understand it with language but no currency.

snaketorque April 22nd, 2004 10:52 AM

Quote:

Originally Posted by Chris2707
That's disappointing. I just ordered and I might have held back if I'd known. I'm amazed that such a basic thing is hard coded - I can understand it with language but no currency.

Chris

It is only 2 files to edit.

http://www.cobraclub.com/classifieds...2&cat=5&page=1

Let me know if you want the edited files and I can just send you the 2 edited files.

Rob

Chris2707 April 22nd, 2004 11:10 AM

Thanks Rob. I've paid for but not received classifieds yet (only ordered earlier today). I'm reasonably ok with making file changes - just don't like to since in some cases it makes upgrading harder. In any case, hard coding currency :eek:

snaketorque April 22nd, 2004 11:20 AM

I know what you mean, I was quite shocked when I couldn't find it in the admin section. But then it is V1, so hopefully it will be fixed shortly.

Rob

Chris2707 April 22nd, 2004 06:25 PM

I spoke to the Prime Minister, the Chancellor and the Queen and they all gave the same response - they're not willing to change UK currency to Dollars and asked if perhaps the next version of Classifieds might have the ability to support other currencies :rolleyes: (which should be made easier with all those other European countries having the same toytown currency - the Euro) :p

Michael P April 22nd, 2004 07:33 PM

I will gladly offer this as an option - an oversight on my part. Hey, its the first release. lol

I originally wrote Classifieds for my own site - it wasn't until enough people asked for it that we saw the potential. :D

cyc April 27th, 2004 02:28 AM

Hi all

I ran the upgrade fine except for one problem, categories (with no ad's) are messed up on the frontpage. To see what I mean take a look at www.cyclingforums.com/classifieds The top four categories don't allow ad's to be posted directly into them, the bottom category does.

Has anyone else run into this problem?

cheers

Steve

NeilStraker May 7th, 2004 08:54 AM

Can anyone tell me what part of the code needs changing in those 2 files? I want to change to £ sterling.

Frank Woolf May 17th, 2004 07:40 PM

I have the same problem. After it was installed I got complaints that the prices are all in dollars when they should be in Philippine pesos (Php).

I contacted Chuck, the Photopost guy who installed it and he sent me the following info:
In showproduct.php find this

if ( $askprice > 0 ) $askprice = "$" . number_format( $askprice, 2 );

change to this

if ( $askprice > 0 ) $askprice = "" . number_format( $askprice, 2 );

or use whatever the peso sign is between the quotes

This works for the display of individual products but in the category listing the $ sign is still there. I now have some people putting the price in US$ and some in Pesos but either way its wrong :(

I guessed Showcat.php would be the other file to edit but I can't find what should be edited. I don't understand any of the coding so I would really appreciate it if someone could post the actual code to be changed.

Many thanks

Frank Woolf May 18th, 2004 07:55 AM

I found the line to change in the showcat.php file. It is:
if ( $status > 0 ) $gallery['price'][$count] = "{$Globals['pp_lang']['sold']}";

else $gallery['price'][$count] = ($price == 0 ? "{$Globals['pp_lang']['na']}" : "$".number_format($price,2) );
Change the $ in "$" to the currency symbol you want.

NeilStraker June 1st, 2004 10:23 AM

Thanks, just what I was after

snaketorque June 28th, 2004 11:17 AM

Quote:

Originally Posted by Michael P
I will gladly offer this as an option - an oversight on my part. Hey, its the first release. lol

I originally wrote Classifieds for my own site - it wasn't until enough people asked for it that we saw the potential. :D

Michael

I have just upgraded to 1.8, and it threw the currency back to $. Is there any chance we can have the currency as an admin variable in the next release please, pretty please. :)

Thanks

Rob

Michael P June 28th, 2004 02:51 PM

Yes, good idea; sorry I missed it during the update.

slant213 July 1st, 2004 07:02 PM

Cheers
 
Thanks to all.

Although it may appear at times that we're the 51st state, i personally like the £.

Ta.

lygren July 23rd, 2004 12:28 PM

...does this mean I can't use my local currency? I operate in three countries with the same service. Really odd programming, and charging 99 USD for å service lacking such a basic feature in such a program seems pretty off... Well, it did not say anything about this in the spec, but hey, this is kinda a thing you'll expect...

Anyhow, I haven't received anything either, soon waiting 24 hours...

Anyone found a solution for showing a given currency in the catalog as well?


All times are GMT -5. The time now is 01:07 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97