 | |  | | | Classifieds Installation & Upgrades If you're having install or upgrade problems, post here. |
April 22nd, 2004, 07:35 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Oct 2002
Posts: 39
| How can I change the currency
Hi
Where am I able to change the currency?
Thanks
|
| |
April 22nd, 2004, 10:38 AM
|
#2 (permalink)
| | Member Verified Customer
Join Date: Oct 2002
Posts: 39
|
Ok, found this and the currency is hard coded into the php files, there are moer currencies out there than the US Dollar.
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
|
| |
April 22nd, 2004, 10:50 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: West Yorkshire
Posts: 72
|
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.
|
| |
April 22nd, 2004, 10:52 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Oct 2002
Posts: 39
| 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
|
| |
April 22nd, 2004, 11:10 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: West Yorkshire
Posts: 72
|
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 |
| |
April 22nd, 2004, 11:20 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Oct 2002
Posts: 39
|
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
|
| |
April 22nd, 2004, 06:25 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: West Yorkshire
Posts: 72
|
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  (which should be made easier with all those other European countries having the same toytown currency - the Euro) |
| |
April 22nd, 2004, 07:33 PM
|
#8 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
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.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
April 27th, 2004, 02:28 AM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2004
Posts: 8
|
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
|
| |
May 7th, 2004, 08:54 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Sep 2002
Posts: 33
|
Can anyone tell me what part of the code needs changing in those 2 files? I want to change to £ sterling.
|
| |
May 17th, 2004, 07:40 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: May 2004
Posts: 118
|
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
|
| |
May 18th, 2004, 07:55 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2004
Posts: 118
|
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.
|
| |
June 1st, 2004, 10:23 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Sep 2002
Posts: 33
|
Thanks, just what I was after
|
| |
June 28th, 2004, 11:17 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Oct 2002
Posts: 39
| 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.  | 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
|
| |
June 28th, 2004, 02:51 PM
|
#15 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
Yes, good idea; sorry I missed it during the update.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
July 1st, 2004, 07:02 PM
|
#16 (permalink)
| | Registered User Verified Customer
Join Date: May 2004
Posts: 51
| Cheers
Thanks to all.
Although it may appear at times that we're the 51st state, i personally like the £.
Ta.
|
| |
July 23rd, 2004, 12:28 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Jul 2004
Posts: 46
|
...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?
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:29 AM. | |