Jump to content

Updating currencies automatically


Recommended Posts

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

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

  • 3 months later...

/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

  • 10 months later...
  • 6 years later...
  • 2 weeks later...
  • 7 months later...

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...