ilan316 Posted July 10, 2012 Share Posted July 10, 2012 Can someone once and for all can explain how can i do a cron job to update automatically currencies ? im using Cpanel and Prestashop 1.4.8 Link to comment Share on other sites More sharing options...
phrasespot Posted July 11, 2012 Share Posted July 11, 2012 There should be a cron jobs icon in your cPanel dashboard. Set a cron job there at the desired frequency using the URL given in the exchange rates page. Say if you want to update rates once a day at 23:15 add the following with appropriate change: 15 23 * * * php -f /home/domain/your_server_account/public_html/renamed_admin_folder/cron_currency_rates.php secure_key=your_secure_key (there is a blank space between cron_currency_rates.php and secure_key) Add an email if you want to receive cron notices. Or if you have more than one PS related cron jobs (or neeed to to an alternative method to cron) download and install Samdha's free 'Crontab for PrestaShop' module from add-ons, Set one cron job for the module in your cPanel dashboard and manage the rest from the module's back office configuration. Link to comment Share on other sites More sharing options...
ilan316 Posted July 15, 2012 Author Share Posted July 15, 2012 how do i set a cron job in " Crontab for PrestaShop' module for currencies ? Link to comment Share on other sites More sharing options...
phrasespot Posted July 15, 2012 Share Posted July 15, 2012 (edited) Select method, enable test job to make sure module is setup properly. Then disable test job and add a job. URL: http://your domain/your_admin_dir/cron_currency_rates.php?secure_key=your_key (Back Office > Payment > Currencies > Currency rates update) Schedule: As desired Edited July 15, 2012 by phrasespot (see edit history) Link to comment Share on other sites More sharing options...
ilan316 Posted July 17, 2012 Author Share Posted July 17, 2012 Test job worked. copied job from Back Office > Payment > Currencies > Currency rates update Cron job executed successfully last execution - 07/17/2012 00:00:02 But Currencies hasn't updated. why? Link to comment Share on other sites More sharing options...
phrasespot Posted July 17, 2012 Share Posted July 17, 2012 Make sure you can reach to http://www.prestashop.com/xml/currencies.xml from your server. Is the currency you are trying to update listed there? Link to comment Share on other sites More sharing options...
ilan316 Posted July 17, 2012 Author Share Posted July 17, 2012 when im updating the currency manually in Back Office > Payment >Currencies it works fine. Link to comment Share on other sites More sharing options...
phrasespot Posted July 17, 2012 Share Posted July 17, 2012 Post a screen capture of the cron module config Link to comment Share on other sites More sharing options...
ilan316 Posted July 18, 2012 Author Share Posted July 18, 2012 Here you go... Link to comment Share on other sites More sharing options...
phrasespot Posted July 18, 2012 Share Posted July 18, 2012 OK, let's first make sure module's invocation works. Change the method from 'server crontab' to 'shop traffic'. Visit the front office. Then check whether the 'last execution time' has changed to coincide with your visit and the rates updated. Note that feed rates are coming from European Central Bank and is updated once a day. Link to comment Share on other sites More sharing options...
ilan316 Posted July 20, 2012 Author Share Posted July 20, 2012 i hope i understood your last message. i changed the method. and visited my front office Link to comment Share on other sites More sharing options...
ilan316 Posted July 20, 2012 Author Share Posted July 20, 2012 i hope i understood your last message. i changed the method. and visited my front office Link to comment Share on other sites More sharing options...
phrasespot Posted July 20, 2012 Share Posted July 20, 2012 i hope i understood your last message. i changed the method. and visited my front office Yes, that is what I meant. Did the currencies update using this method? Link to comment Share on other sites More sharing options...
ilan316 Posted July 21, 2012 Author Share Posted July 21, 2012 I think it did. Link to comment Share on other sites More sharing options...
phrasespot Posted July 22, 2012 Share Posted July 22, 2012 OK, great. Then it should update with cron as well. Maybe cron update was within the current currency rates period. Set it to cron and watch it for a few days. Post again if it does not update. Link to comment Share on other sites More sharing options...
ilan316 Posted July 22, 2012 Author Share Posted July 22, 2012 OK i will do that. thank you. Link to comment Share on other sites More sharing options...
Bejo Posted October 29, 2012 Share Posted October 29, 2012 /usr/bin/php -q /home/xxxxxxxx.com/k4928592/public_html/admin123/cron_currency_rates.php secure_key=scurecode still not work it's said from email crontab: No input file specified. help!!ps 1.5.1 fresh installation Link to comment Share on other sites More sharing options...
Rukshar Khan Posted August 29, 2013 Share Posted August 29, 2013 I still cannot get cro job working using all instructions for automati update of currencies. Link to comment Share on other sites More sharing options...
Dhiru Bhojwani Posted June 28, 2020 Share Posted June 28, 2020 Hi there, this may be a stupid question but how can I get my presta secure key? When I go to localisation->currencies I do not see anything on the bottom to update live currencies. Link to comment Share on other sites More sharing options...
Dhiru Bhojwani Posted July 6, 2020 Share Posted July 6, 2020 bump Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 25, 2021 Share Posted February 25, 2021 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now