Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (6 votes)

100% thumbs up 0% thumbs down

How would you rate this answer?



Thank you for rating this answer.

Can I automatically update currency exchange rates every day?

Yes. Interspire Shopping Cart includes the ability to automatically update exchange rates for any of the currencies configured in your store. To enable automatic updating of exchange rates you need to set up a crontab on your server.

How to configure automatic exchange rate updates

Follow the steps below to enable automatic currency exchange rates for your store:
  1. Click the Settings link and choose the Currency Settings menu option
  2. Ensure that each of your currencies are configured to fetch their exchange rates from one of the available services
  3. Click the Exchange Rate Settings tab
  4. Copy the contents of the Cron Command text box under the Automatic Exchange Rate Updates (Crontab Based) section to the clipboard, as we'll need it for the next step
Now we need to create a crontab entry on the server. A crontab is a special way to repeatedly run a command (in our case, automatically updating exchange rates) at a specific time of day/week/month.

How to setup the crontab

Please note: If your web hosting provider doesn't run CPanel or Plesk then you will need to setup the crontab manually. You can either do this yourself or ask your web hosting provider to do it for you.

Most web hosting providers run the CPanel or Plesk hosting control, so we'll learn how to setup a crontab for both of those systems below.

How to setup a crontab in CPanel

Login to your control panel and look for the cronjobs icon There are two 'modes' to set cron jobs in Cpanel – you can choose either the standard or the advanced mode. The standard mode looks like this:



This is a very simple way to add the frequency of the cron without needing to know what the asterisk or the numbers mean. In the command line you then add the Cron Command that you copied to the clipboard earlier. In the top field, you place the email address where the output will be sent – this is usually to alert you of errors etc.

For the advanced mode you will see the following:


In this mode, you simply place the Cron Command that you copied to the clipboard into the Command textbox and then enter your frequency in the corresponding columns – they are clearly labeled so you can see which column are using as well.

How to setup a crontab in Plesk

Login to your Plesk control panel and look for the crontab icon. Crontabs are called 'tasks' in Plesk. In order to create a task click on the add new task icon. All current tasks will be shown in the tasks section for the specific user(in the dropdown).

Click the Add New Task button to create a new crontab entry:



Paste the Crontab Command that you copied to the clipboard earlier into the Command field. You will then need to specify when you want the crontab command to run. For a complete tutorial on how to specify when you want the crontab to run, please see this article.

As a general rule of thumb you should configure the crontab to automatically update exchange rates every 24 hours.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software