 | |  | | | ReviewPost Installation & Upgrades If you're having problems getting ReviewPost Pro to work or receiving errors while running RP, seek help here. |
July 2nd, 2004, 05:10 AM
|
#1 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| changing currency in RP 2.8d?
Hi
I just copied/ftp the few changed files of 2.8d over my 2.8c fresh installation, as instructed inthe update information in this forum.
No I try to change the currency from USD into Euro.
I achieved this for the avarage price, but not for the reviews itself.
in review.php I have now the following:
----------------
$username = addslashes( $User['username'] );
$review = addslashes( $review );
$pros = addslashes( $pros );
$cons = addslashes( $cons );
$price = str_replace( "€", "", $price );
$price = str_replace( "€", "", $price );
if ( !is_numeric($price) ) $price = 0;
-----------------------------
But it does not work. It still shows the USD sign in the reviews. How to fix this?
|
| |
July 3rd, 2004, 07:05 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
I believe the price is handled in showproduct. There are two instances of the US format in that file.
|
| |
July 5th, 2004, 03:08 AM
|
#3 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
o.k., thanks, I found it. It was the line:
$price[$itemnum] = "\$" . number_format( $priceline, 2 );
I changed it to:
$price[$itemnum] = "€" . number_format( $priceline, 2 );
For the average price I changed earlier already in showproduct.php this line:
$avgprice = "$" . number_format( $avgprice, 2 );
to this line:
$avgprice = "€" . number_format( $avgprice, 2 );
|
| |
May 9th, 2005, 08:09 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Indonesia
Posts: 50
|
thanks, this thread is usefull to me. I have one more thing to ask about the currency. How to change the writing form. FYI: In our country, we use dot instead of comma, for example: 100.000 instead of 100,000 to write one hundred thousand. Currently, if user writes using dot then the number after dot will not appeared. Pls help.
|
| |
May 10th, 2005, 06:14 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
You dont write the dot
if ( $askprice > 0 ) $askprice = "{$Globals['currency']}" . number_format( $askprice, 2 );
We use php's build in number formatting. You can change it by changing the arguement a bit. More info found here http://us3.php.net/manual/en/function.number-format.php |
| |
September 29th, 2005, 05:01 PM
|
#6 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote: |
Originally Posted by omegatron You dont write the dot
if ( $askprice > 0 ) $askprice = "{$Globals['currency']}" . number_format( $askprice, 2 );
We use php's build in number formatting. You can change it by changing the arguement a bit. More info found here http://us3.php.net/manual/en/function.number-format.php | For the sake of others: I just made changes for this in showproduct.php for European appearing of numbers. I did it for my classifieds 2.4.2 installation, but I guess it is the same in Reviewpost.
In Euro you have the numbers appearing like this: 1.500,00 (in USD this would be 1,500.00)
Change this (US appearance):
number_format( $askprice, 2 );
to this (European appearance):
number_format( $askprice, 2, ',', '.');
|
| |
September 29th, 2005, 05:26 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
yes correct the php number format
|
| |
April 1st, 2006, 12:41 AM
|
#8 (permalink)
| | Member
Join Date: Mar 2006
Posts: 88
|
what would you do to give the option for cdn? we still use. Is it possible to give mutiple currency options. IE USD, CDN, EURO?
|
| |
April 1st, 2006, 06:36 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
This is a way old thread. The program has us euro and british pounds by default basically to add canadian you would need to hack your showcat and showproduct files to give that option.
|
| |
April 1st, 2006, 11:25 AM
|
#10 (permalink)
| | Member
Join Date: Mar 2006
Posts: 88
|
Perhaps I was hasty in this purchase. I can't figure out where the reference is. I'll start another thread to discuss it then.
|
| |
April 1st, 2006, 05:37 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
We have as stated Euro US and Pounds in the classifieds not canadian
|
| | |
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 08:14 AM. | |