Re: Currency Update (Automatic)
Quote:
Originally Posted by
vanson
should i press 'update' button every day?
The purpose of this add-on mod is to automate the process by running a CRON job.
In the absence of that automation, it's probably easier to press update each day (or with whatever frequency you feel is appropriate to keep your currencies up-to-date - though more than daily won't have any effect) as it is to install this mod and run it from a browser.
Re: Currency Update (Automatic)
@kuroi
That has worked fine, thanks for taking the time to reply.
Re: Currency Update (Automatic)
Hi,
I uploaded the file without any changes to store root. and setup the cron job by typing in the command field
"curl http://www.mysite.com/currency_update.php"
But I keep getting this message
/bin/sh: curl http://www.mysite.com/currency_update.php: No such file or directory
I also tried changing to the following but it doesn't work
DEFINE('PATH_TO_STORE_ROOT','/');
What did I do wrong? Please help. Thanks.
Re: Currency Update (Automatic)
No need to change anything on the store file system.
Try to set the cron job as:
with the appropriate frequency / time settings.
This has worked for me just fine.
Of course, you need to make sure that the currency_update.php file actually resides at top level
Re: Currency Update (Automatic)
Hi,
I think what I did actually works... just have to remove the quote marks
curl http://www.mysite.com/currency_update.php
The message I received is this. Does that mean it works?
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Re: Currency Update (Automatic)
Hi,
I changed to what you suggested
wget http://www.mysite.com/currency_update.php
but received the following error. Please advise.
--00:35:01-- http://www.mysite.com/currency_update.php
=> `currency_update.php'
Resolving www.mysite.com... XXX.XXX.X.XX Connecting to www.mysite.com|XXX.XXX.X.XX|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
00:35:01 ERROR 403: Forbidden.
Re: Currency Update (Automatic)
Quote:
Originally Posted by
dealbyethan.com
That depends on your server configurations - seems the wget is disabled by your host. Could also be prevented by your .htaccess file.
You may want to go back to your previous configuration using curl. Then manually update your currencies in admin. Take note of the ex-rates after the manual update.
Set the cron job to run at the next full hour, wait until the script has run then check the new ex-rates against your notes. If there is a difference then rest assured that the automatic currencies updater works.
Re: Currency Update (Automatic)
Quote:
Originally Posted by
frank18
That depends on your server configurations - seems the wget is disabled by your host. Could also be prevented by your .htaccess file.
You may want to go back to your previous configuration using curl. Then manually update your currencies in admin. Take note of the ex-rates after the manual update.
Set the cron job to run at the next full hour, wait until the script has run then check the new ex-rates against your notes. If there is a difference then rest assured that the automatic currencies updater works.
Hi, my host said they didn't disable it. They think our .htaccess file causing the issue but not sure about which rule. Do you have any idea?
I wouldn't want to use curl and also have to manually update the currencies in admin. The purpose of doing this is to automate it.
Re: Currency Update (Automatic)
One of my sites is updated with this cron:
/usr/local/bin/php /home/MY_ACCOUNT/public_html/currency_update.php
Note the space between php and /home
The first part /usr/local/bin/php would depend on the location of your php folder within your server's file structure. Your host should be able to tell you the path applicable to your server.
Re: Currency Update (Automatic)
Quote:
Originally Posted by
kuroi
The file outputs nothing.
The way I test it personally, is to tweak the currency rates in the database and then run it in a browser as you have and look in the database to see if they're changed.
This is what I have been doing and have noticed that - only Euro is being changed. I have INR (indian Rupee) and USD which stay the same - These are not being updated - I havent changed the default USD configuration in admin/currency. My default currency is GBP.
version. 1.3.9f