Jump to content

Default currency change parity bug is fixed !


Recommended Posts

Hi,

Before appliying the changes here, first you have to read http://www.prestashop.com/forums/viewthread/6938/installation_configuration___upgrade/european_central_bank_currency_update_feature_is_here_ topic to obtain uptodate currencies.

problem and solution
When you change the default currency in the prestashop, both new default currency and the previous default currency exchange rates become 1. For example. your current currency is EUR and you want to change it to USD, when you change it. The exchange rates of EUR and USD become 1, which is a big trouble for international sales. I fixed the problem by updating the rates from European Central Bank rates.

You have to change AdminCurrencies.php file with my modified file at prestashop_1.0\admin\tabs folder. I wish it will help your business.

AdminCurrencies.zip

Link to comment
Share on other sites

  • 11 months later...

debugginglife,

I like what you've done with "PrestaShop\Classes\Currency.php" and "PrestaShop\Admin\Tabs\AdminCurrencies.php" files,
that is a big help to all of us PrestaShop users.

I am wondering though if you (or anyone else) would be willing to rewrite them to be compatible with Prestashop v1.2.4 as that is what I am using?
And yes I have already tried the v1.1 versions of each and I get the "1 error - Cannot Parse Feed" when I click on the "update currency rates" button at the bottom of the Currencies page of the BackOffice.

Dan Brouwers

Link to comment
Share on other sites

Thanks for the reply TropischBruin.

I can change the Default Currency ok, it's just that when I click on Update Currency Rates that I get the error.

I think I will Download, Unzip and FTP my files a third time just to make sure that all of my files are complete.
And I will also re-read debugginglife's instructions, maybe I missed something.
I will do this tomorrow and post my status afterwards.

Thanks, Dan Brouwers

Link to comment
Share on other sites

TropischBruin,

Well, I have downloaded, Unzipped and FTP original files.
Then I FTP the modified AdminCurrencies.php and Currency.php v1.0 and Currency.php v1.1 all one at a time while testing my BackOffice for "Update Currency Rates" each time.
I still get the same "cannot parse feed" error.

Since you also have PrestaShop v1.2.4.0, would you be so kind as to share your working copies of AdminCurrencies.php and Currency.php please.
Then if I still continue to get the error then I know my problem must be something else.

Thanks, Dan Brouwers

Link to comment
Share on other sites

TropishBruin,

In your download you included Admin/Tabs/AdminCurrencies.php
and Modules/BlockCurrencies/BlockCurrencies.php

Would you also give me Classes/Currency.php please?

Thank you very much sir, I appreciate the help!

Dan Brouwers

Link to comment
Share on other sites

Ok.........problem solved!
For you other newbies like me here is how I fixed it.

#1 I made sure that all the files for PrestaShop v1.2.4.0 on the server were original (not updated).

#2 I also checked PHP settings by FTP a file named "check_info.php5" to the root of the website.
It consisted of the following line of code "<?phpinfo();?>"

When going to "www.domainname.com/check_info.php5"
I found that "allow_url_fopen" was set to "Off".

So I created a file named "php.ini" with the following line of code "allow_url_fopen=On"
and FTP it to the Admin Folder.

#3 I then deleted the "check_info.php5" file that I put in the root of the website.

#4 I double checked to make sure that the "Update Currencies Rates" in Admin/Payment/Currencies worked.
Hurray...it worked!!!!!

I do not get paid to say this but..........
Now I will purchase the "Currency Update" Module from
http://www.prestaworks.com/various/16-currency-update.html for $72.00 (USA).
That way I will have fairly updated currencies without hacking up my core files for PrestaShop.
I believe that having that in module form will help me as far as future upgrades to the shopping cart.

I hope this helps!
Many thanks goes out to TropischBruin, Philippe Sang and Daniel Westerberg for your help!

Dan Brouwers
PrestaShop v1.2.4.0
PHP5
Hosted at 1and1.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...