Forums / All Other Contributions/Addons / Currency Update (Automatic)

Currency Update (Automatic)

Views: 82,431

Results 261 to 280 of 298
14 Jan 2012, 4:14 AM
#261
spembleton avatar

spembleton

Zen Follower

Join Date:
Jun 2010
Location:
Holland, MI
Posts:
232
Plugin Contributions:
0

Currency Update (Automatic)

DrByte:

FYI - The ECB support is built-in to v1.5.0

How does it work, or where can find out how it works?

14 Jan 2012, 4:45 AM
#262
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Currency Update (Automatic)

SPembleton:

How does it work, or where can find out how it works?
Not sure what you're talking about. I was referring to the fact that the ECB bank source for updates is built-in to v1.5.0.
No cron jobs. No hands-off automated updating. Just a more reliable source for updates when you click on the "Update" button on the currencies screen.

And since the addon discussed in this thread has adopted ECB stuff, you'll probably want to remove the duplication from the addon if you're using it with 1.5.0.

Sorry, it wasn't an "end user" tip, but rather a tip to whoever updates or supports the addon to be mindful of the core code change.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Jan 2012, 4:15 PM
#263
spembleton avatar

spembleton

Zen Follower

Join Date:
Jun 2010
Location:
Holland, MI
Posts:
232
Plugin Contributions:
0

Re: Currency Update (Automatic)

SPembleton:

Will v4.0 work with Zencart 1.5?

I have tested it out on a dummy 1.5.0 site and it works fine

18 Jan 2012, 4:38 PM
#264
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Currency Update (Automatic)

No cron jobs. No hands-off automated updating. Just a more reliable source for updates when you click on the "Update" button on the currencies screen.
Yes, but the rates update manually, don't they? The mod updates them automatically every day and you just set it up once and forget about it.

I have upgraded to ZC 1.5 and the mod still works fine.

18 Jan 2012, 4:54 PM
#265
spembleton avatar

spembleton

Zen Follower

Join Date:
Jun 2010
Location:
Holland, MI
Posts:
232
Plugin Contributions:
0

Re: Currency Update (Automatic)

Athens Collectibles:

Yes, but the rates update manually, don't they? The mod updates them automatically every day and you just set it up once and forget about it.

I have upgraded to ZC 1.5 and the mod still works fine.

The manual updating of the exchange rates is part of the base zencart software. I am still running my 1.3.9 store, but have a test store in 1.5.0. I am therefore able to test the currency updating side-by-side. Manually updating works better in 1.5.0. When I manually update in 1.3.9, I get errors that it cannot update AUS$ and Euros. I don't get that error in 1.5.0

This mod updates the rates when it is invoked. The timing for when the mod is invoked is set in your hosting site. I don't see any errors when it is invoked.

What I am still trying to determine is that some of the exchange rates are different between the 1.3.9 site and the 1.5.0 site. I am still trying to determine the cause. If I figure it out, I will come back here.

18 Jan 2012, 5:04 PM
#266
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Currency Update (Automatic)

Steve, the reason you see differences in rates is that 1.50 uses the ECB rates, while 1.3.9h takes the rates from oanda (a different provider).

25 Oct 2012, 12:26 AM
#267
black_uhuru avatar

black_uhuru

New Zenner

Join Date:
Oct 2012
Posts:
3
Plugin Contributions:
0

Re: Currency Update (Automatic)

Hi people,
I have a Zen Cart v1.5.0 site and everything works perfectly except this really-important mod. I spent many days trying to configure it and reading many possible sollutions in this thread, but I still can't configure it correctly. First I had problems setting the cron job at the cPanel, but I asked my hosting provider and they fixed it by writing "curl" just before the root of the file. Since then the cron job seems to work but currencies don't update in the admin. In the email I receive appears the following text:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

100 389 100 389 0 0 7245 0 --:--:-- --:--:-- --:--:-- 7245
100 389 100 389 0 0 7227 0 --:--:-- --:--:-- --:--:-- 0

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>406 Not Acceptable</title> </head><body> <h1>Not Acceptable</h1> <p>An appropriate representation of the requested resource /currency_update.php could not be found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>

Does anybody knows what am I doing wrong?
(sorry for my poor english)

25 Oct 2012, 1:22 AM
#268
black_uhuru avatar

black_uhuru

New Zenner

Join Date:
Oct 2012
Posts:
3
Plugin Contributions:
0

Re: Currency Update (Automatic)

I forgot to say that the file is in the root folder. I tested the v4 module and also the v3.1 "curled version", and I tried with many different roots with no success. Now I have this settings in the currency_update.php (of course replacing "my_user_name" with the real one):

define('/home/my_user_name/public_html/','/home/my_user_name/public_html/');
require_once(PATH_TO_STORE_ROOT . '/home/my_user_name/public_html/includes/configure.php');
require_once(PATH_TO_STORE_ROOT . '/home/my_user_name/public_html/includes/database_tables.php');

25 Oct 2012, 9:31 PM
#269
black_uhuru avatar

black_uhuru

New Zenner

Join Date:
Oct 2012
Posts:
3
Plugin Contributions:
0

Re: Currency Update (Automatic)

forget my question and excuse me!!
finally I found the sollution in post #139 (page 14) of this thread. Also, the first line I posted before was wrong (happens when you change the code thousand times :P
I still receive the same error mesage in the email from the cron job, but the mod works fine...

12 Jun 2013, 1:36 PM
#270
gizmotronic avatar

gizmotronic

New Zenner

Join Date:
Jun 2013
Location:
UK
Posts:
1
Plugin Contributions:
0

Re: Currency Update (Automatic)

I now have this script working fine on a v1.5.1 installation running on PHP Version 5.2.17.
However, it was initially not without the same problem that so many others seem to have had with the PATH_TO_STORE_ROOT issue.
It didn't matter that the path was correctly inserted, the script still gave the error that the includes/configure.php file did not exist.

**My solution
**I have the currency update script in the store's root folder but I have renamed it to **gtcu.php **with the following changes to lines 20, 23 and 24:
Change line 20 from

define('PATH_TO_STORE_ROOT','');

to

//  define('PATH_TO_STORE_ROOT','');

This disables this line altogether as it's now no longer needed.
Then change lines 23 and 24 from

require_once(PATH_TO_STORE_ROOT . 'includes/configure.php');
require_once(PATH_TO_STORE_ROOT . 'includes/database_tables.php');

to

require_once('includes/configure.php');
require_once('includes/database_tables.php');

As my store is UK based I have also changed the default currency from EUR to GBP, so lines 53 and 82 are changed accordingly:
Line 53

if (DEFAULT_CURRENCY == 'GBP')

Line 82

$cc='GBP';

The CRON job I used in cPanel is set to run once a day at 6am

0 6 * * * php -q /home/MY_ACCOUNT_NAME/public_html/MY_STORE_NAME/gtcu.php

For testing, I set the CRON to run every 5 minutes and it correctly sent a blank email each time, which means it was working properly.

Finally, I had to tweak the default uplift ratio, as the converted amounts seemed well below what they should be.
in Admin > Configuration > My Store > Currency Conversion Ratio I changed from the default 1.05 to 1.171 which now looks about right.

My live store is at http://www.gizmotronic.co.uk if you want to check my store prices with the automatically updated currencies.

Hope this was some help to you.

2 Jul 2013, 2:25 AM
#271
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Currency Update (Automatic)

can u please give me a step by step procedure for the cron job settings?

I tried to add the cron job but the system gives errors.

i will be very thankful to you.

2 Jul 2013, 2:52 AM
#272
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Currency Update (Automatic)

muteyaar:

I tried to add the cron job but the system gives errors.
Can you show the specific errors?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jul 2013, 3:25 AM
#273
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Currency Update (Automatic)

I changed the line 17 PATH_TO_STORE_ROOT to includes/currency_update.php and then uploaded the file to the includes folder.
then I added the cron job : /home/username/public_html/includes/currency_update.php

but the system gives errors like : No such file or directory

2 Jul 2013, 4:03 AM
#274
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Currency Update (Automatic)

further, another error PERMISSION DENIED is being shown.

2 Jul 2013, 5:37 AM
#275
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Currency Update (Automatic)

The post just before yours gives a lot of step by step suggestions which should answer your issues.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Aug 2013, 5:13 PM
#276
waterbender avatar

waterbender

New Zenner

Join Date:
May 2010
Posts:
84
Plugin Contributions:
0

Re: Currency Update (Automatic)

Hi, is this module on the plugin page still compatible with the latest zen cart v1.5.1?

13 Aug 2013, 7:30 PM
#277
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Currency Update (Automatic)

Hi,

I don't know if it's officially marked as compatible but it works fine on my site after upgrading to 1.5.1

I hope this helps.

14 Aug 2013, 1:00 AM
#278
waterbender avatar

waterbender

New Zenner

Join Date:
May 2010
Posts:
84
Plugin Contributions:
0

Re: Currency Update (Automatic)

Thank you.

18 Oct 2013, 8:25 AM
#279
palafirst avatar

palafirst

New Zenner

Join Date:
Oct 2011
Posts:
29
Plugin Contributions:
0

Re: Currency Update (Automatic)

Is it possible to set up the Cron job while working on a local server? I'm using Ampps. Thanks in advance.

18 Oct 2013, 9:04 AM
#280
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Currency Update (Automatic)

palafirst:

Is it possible to set up the Cron job while working on a local server? I'm using Ampps. Thanks in advance.

You will need to consult your server and/or OS documentation to do this.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.