Zen Cart Logo

Update currencies

Locked

Views: 2,418

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Apr 2008, 12:26 PM
#1
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Update currencies

When I try and do this in the relevant section I get the following and all currencies are converted back to 'zero' values:

Error cURL communication ERROR: couldn't connect to host
Warning Warning: The primary exchange rate server (oanda) failed for GB Pound (GBP) - trying the secondary exchange rate server.
Error cURL communication ERROR: couldn't connect to host
Success The exchange rate for GB Pound (GBP) was updated successfully via xe.
Error cURL communication ERROR: couldn't connect to host
Warning Warning: The primary exchange rate server (oanda) failed for Euro (EU) - trying the secondary exchange rate server.
Error cURL communication ERROR: couldn't connect to host
Success The exchange rate for Euro (EU) was updated successfully via xe.
Error cURL communication ERROR: couldn't connect to host
Warning Warning: The primary exchange rate server (oanda) failed for US Dollars (USD) - trying the secondary exchange rate server.
Error cURL communication ERROR: couldn't connect to host
Success The exchange rate for US Dollars (USD) was updated successfully via xe.

Any ideas?

11 Apr 2008, 1:51 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Update currencies

This part references/tries to obtain info from more than one source and it looks like connecting to oanda was glitchy at the time you did this but was successful at xe

Or do you have curl enabled?

15 Apr 2008, 5:19 AM
#3
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Re: Update currencies

NO it still doesn't work. All currencies are reset to zero.

15 Apr 2008, 5:55 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Update currencies

NO it still doesn't work. All currencies are reset to zero.
You will have to determine why your server can not connect to solve this issue.

I just checked and I can connect and they are updated...

23 Apr 2008, 9:07 PM
#5
dejavu avatar

dejavu

New Zenner

Join Date:
Mar 2008
Posts:
76
Plugin Contributions:
0

Re: Update currencies

For godaddy folks, you have to set the proxy server.

/shop/admin/includes/functions/locatization.php

curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");

23 Apr 2008, 10:28 PM
#6
dejavu avatar

dejavu

New Zenner

Join Date:
Mar 2008
Posts:
76
Plugin Contributions:
0

Re: Update currencies

I actually had to do all this

//    if (CURL_PROXY_REQUIRED == 'True') {

//      $proxy_tunnel_flag = (defined('CURL_PROXY_TUNNEL_FLAG') && strtoupper(CURL_PROXY_TUNNEL_FLAG) == 'FALSE') ? false : true;

//      curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, $proxy_tunnel_flag);

      curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

      curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");

//      curl_setopt ($ch, CURLOPT_PROXY, CURL_PROXY_SERVER_DETAILS);

//    }

I wasn't sure where to define CURL_PROXY_REQUIRED, so I just commented it out. For this server, good enough.